Bocchi Posted August 3, 2015 Share Posted August 3, 2015 I'm trying to open a mobile form (TUnimForm) from another, in desktop mode, but I get this error; Ext.Label is not a function O2A=new Ext.Container({id:"O2A_id",layout:"vbox",scrollable:false,fullscreen:true});O2A.nm="O2A";_cdo_("MainmForm");MainmForm.ajxS=AjaxSuccess;MainmForm.ajxF=AjaxFailure;O2A.rootObj=true;MainmForm.appRoot="/";_cdo_(null,O2A,"window",MainmForm); O32=new Ext.form.Panel({id:"O32_id",scrollable:false,layout:"vbox",width:1920,height:967});O32.nm="O32";_cdo_(null,O32,"form",MainmForm); O3A=new Ext.Toolbar({id:"O3A_id",title:"MainmForm",docked:"top",height:47});O3A.nm="O3A";_cdo_(null,O3A,"titlebar",MainmForm); O42=new Ext.Button({id:"O42_id",iconAlign:"right",iconAlign:"left",icon:"/unim-0.99.50.1187/images/close-form.png",ui:""});O42.nm="O42";_cdo_(null,O42,"closebutton",MainmForm); O46=new Ext.Label({id:"O46_id",cls:"x-unilabel",html:"\x3Ci\x3E\x3Cb\x3Ehttp://localhost:8077/m\x3C/b\x3E\x3C/i\x3E will show this Form.",width:1920,height:23,left:0,top:0});O46.nm="O46";_cdo_("UnimLabel1",O46,null,MainmForm);O32.add(O46); O4A= (function(P0){return Ext.Ajax.request({url:"/HandleEvent",params:"Ajax=1&IsEvent=1&Obj=O42&Evt=tap&this="+P0.nm+""+_gv_(O32),success:AjaxSuccess,failure:AjaxFailure,obj:O42,e:"tap"});});O4A.nm="O4A";O42.on("tap",O4A);O3A.add(O42);O32.add(O3A);O2A.add(O32);Ext.Viewport.add(O2A);O2A.uniMask={ldMask:false,maskWaitData:false,maskUseMsg:true};O2A.uniMask.targetObj=null;O2A.show(); How can I solve this problem? Thanks. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 3, 2015 Administrators Share Posted August 3, 2015 Mobile forms can only be shown in a mobile session. Link to comment Share on other sites More sharing options...
skafy Posted January 9, 2017 Share Posted January 9, 2017 For me it works if I just add /m in address. So http://localhost:8077/m shows mobile form at PC and phone/tablet. Link to comment Share on other sites More sharing options...
asapltda Posted February 22, 2017 Share Posted February 22, 2017 Hello, create a form using delphi windows fmx the size of the cell phone, place a browser on the form and call the program from this mobile program, that will simulate the size of the cell phone Link to comment Share on other sites More sharing options...
Recommended Posts