Problem with a window

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
mwalter
Experienced User
Posts: 140
Joined: Wed Sep 14, 2016 2:58 pm
First Name: Mark
Last Name: Walter
Company Name: Paragon Consulting Services
Contact:

Problem with a window

Post by mwalter »

I'm having an issue getting a subfile control record to display as a window. I know the format is displaying somewhere because I have a "cancel" button bound to the escape key, and that is working. The problem is that I can't see the window. The main display just goes dark but no window displays.

Thanks,
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Problem with a window

Post by Scott Klement »

It sounds to me like it is starting to draw the display (it has masked the previous display, set up the keyboard function keys, etc) but is crashing before it draws the window.

Go into the browser's developer tools and look for errors in the console.
mwalter
Experienced User
Posts: 140
Joined: Wed Sep 14, 2016 2:58 pm
First Name: Mark
Last Name: Walter
Company Name: Paragon Consulting Services
Contact:

Re: Problem with a window

Post by mwalter »

The only think I"m seeing in the console is "The key "target-densitydpi" is not supported. But, I see that all the time.

It's funny, I can see the window popup, then go away. Like something is masking it.

If I look in the inspector, I see a container div, that holds the window. It has a z-index of 1036. Not sure what it is. Could this be masking the window?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Problem with a window

Post by Scott Klement »

Okay, thanks for looking into the error. It was just a guess, obviously, and we've now ruled that out.

"masking" and z-index are two different concepts. We apply masking to the previous screens, so that they are visible, but appear darker or "grayed out". They wouldn't be applied to your window, however, unless you wrote another format that overlays it.

Z-Index controls what is displayed "in front" of another thing. So if the z-index of your window has a higher number than the z-index of the display that it overlays, the overlaid display will appear "in back of" the window. Higher numbers are always in front of lower numbers. Profound UI starts windows above 1000 to make them appear in front of other things. (If there are multiple windows, it adds extra to the subsequent ones to make them even higher.)

So, knowing your Window's z-index doesn't tell me much unless I know the z-index of the previous displays that it overlays. If they have a higher z-index than the window, that would explain the problem! But, usually Profound UI does a good job of setting these properly. Unless you've changed some z-index values somewhere?

If you can't figure it out, once you get the bad screen, press Ctrl-F9. This will download a JSON dump of your display (it is whatever the handler is sending to the JavaScript framework) called json.txt. If you post that JSON dump to these forums, I can use it to "re-play" your screen on my machine and see what's going on.

(Make sure there's nothing private in the display, since this is a public forum.)
mwalter
Experienced User
Posts: 140
Joined: Wed Sep 14, 2016 2:58 pm
First Name: Mark
Last Name: Walter
Company Name: Paragon Consulting Services
Contact:

Re: Problem with a window

Post by mwalter »

Here is the JSON.

Code: Select all

{"success":true,"version":"4.8.0","psid":"E9DBC6E495C8B6D3D74AAE99495E4EF0DDF87EA434E81799BCF895D7C5D4AC12","appJob":{"auth":"E9DBC6E495C8B6D3D74AAE99495E4EF0DDF87EA434E81799BCF895D7C5D4AC12","user":"MWALTER","sysTime":1475566622,"decimalFormat":" ","curSym":"$","dateSeparator":"/","timeSeparator":":","dateFormat":"*MDY","secLevel":1,"sysName":"DAS"},"layers":[{"formats":[{"name":"SFLCTL","file":"WMS0006DD","library":"PUIPGM","fileId":1,"active":false,"ref":{},"data":{"BOXNUMBERS":"000001","BOXNUMBS":"1","BTNCHGPRT":"0","BTNENTER":"0","BTNEXIT":"0","BTNNEWBOX":"0","BTNRPLEN":"0","BTNSFLCLCK":"1","C1BOX#":"000001","C1ITM##":"","C1ITM#FCS":"1","C1ORD#":"70514013","C1QTY":"0","ERRBOX01":"","ERRITM01":"","ERRITM02":"","ERRITM03":"","ERRITM04":"","ERRQTY01":"","ERRQTY02":"","PTDESC":"Test Printer 01","ROWCOLOR":"1","S1QTY":"6","SELECDROW":"3","SFLCLR":"0","SFLDSP":"1","SFLDSPCTL":"1","SFLRCDNBR":"1","STORAGE":"TEST","WMNAME":"Mark Walter - Paragon"},"subfiles":{"SFLREC":{"ref":{},"field names":["ROWCOLOR","S1BOX#","S1ITDSC","S1ITM#","S1LOC","S1QTY","S1QTYPCK","S1SEQ#","SFLNXTCHG","SHWBOXLBL"],"data":[["0","","WEATHERACE 22\u0022 WIPER BLADES","WA22","51-23145A","2","0","7","","0"],["0","","MOBILSPEC 2+2 POWER OUTLET","MSCUP22USB","51-39035A","1","0","3","","0"],["1","1","HOWES DIESEL TREAT 1/2 GALLONS, 6/CS","103060","51-23072A","6","6","10","","1"]]}},"metaData":{"screen":{"record format name":"SFLCTL","onload":"//window.setTimeout( function() {getObj('tbC1Itm##').focus()}, 5000)\n","external css":"/profoundui/userdata/css/android.css"},"items":[{"id":"Layout1","field type":"layout","css class":"mobile-device-layout","left":"0px","top":"0px","template":"mobile device","height":"100%","width":"100%"},{"id":"btnExit","field type":"css button","value":"Back","left":"20px","top":"10px","width":"50px","theme":"G - Red","small button":"true","response":{"fieldName":"btnExit","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"border top style":"none","height":"30px","shortcut key":"F1","straight edge":"all","font size":"11px","z index":"23","layout":"Layout1","container":"1"},{"id":"btnNewBox","field type":"css button","value":"N/B","left":"20px","top":"10px","width":"50px","theme":"B - Blue","small button":"true","height":"30px","response":{"fieldName":"btnNewBox","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"shortcut key":"F2","straight edge":"all","tab index":"3","z index":"22","font size":"11px","layout":"Layout1","container":"1"},{"id":"Label1","field type":"output field","css class":"label","value":"Box #:","left":"175px","top":"25px","width":"60px","font family":"Verdana","font size":"12px","layout":"Layout1","container":"1"},{"id":"txtInvno","field type":"output field","css class":"outputField","value":{"fieldName":"c1ord#","dataLength":"9","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[c1ord#]"},"left":"240px","top":"5px","font family":"Verdana","font size":"12px","width":"53px","layout":"Layout1","container":"1"},{"id":"Label2","field type":"output field","css class":"label","value":"Invoice #:","left":"155px","top":"5px","width":"80px","font family":"Verdana","font size":"12px","layout":"Layout1","container":"1"},{"id":"tbC1Itm##","field type":"textbox","css class":"input","value":{"fieldName":"C1ITM##","dataLength":"20","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[C1ITM##]"},"left":"10px","top":"25px","font family":"Verdana","font size":"12px","tab index":"1","error messages":"4 messages","error message location":"bottom","prevent auto tab":"false","text transform":"uppercase","error message":"Invalid Item #","error condition":{"fieldName":"errItm01","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"error enhanced mode":"0","error message 2":"This Item is not on the order.","error condition 2":{"fieldName":"errItm02","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"error enhanced mode 2":"0","error message 3":"Item is not in this section","error condition 3":{"fieldName":"errItm03","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"error enhanced mode 3":"0","error message 4":"Item is fully picked","error condition 4":{"fieldName":"errItm04","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"error enhanced mode 4":"0","set focus":{"fieldName":"c1Itm#Fcs","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"true / false"},"layout":"Layout1","container":"2"},{"id":"Label3","field type":"output field","css class":"label","value":"Item/UPC/GTIN","left":"10px","top":"5px","width":"150px","font family":"Verdana","font size":"12px","layout":"Layout1","container":"2"},{"id":"TextBox2","field type":"textbox","css class":"input","value":{"fieldName":"C1QTY","dataLength":"6","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[C1QTY]"},"left":"180px","top":"25px","font family":"Verdana","font size":"12px","width":"128px","tab index":"2","error messages":"2 messages","error message":"Qty Must be > 0","error condition":{"fieldName":"errQty01","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"error enhanced mode":"0","error message 2":"Qty Exceeds Order Qty","error condition 2":{"fieldName":"errQty02","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"error enhanced mode 2":"0","error message location":"bottom","input type":"number","layout":"Layout1","container":"2"},{"id":"Label4","field type":"output field","css class":"label","value":"Quantity:","left":"180px","top":"5px","width":"150px","font family":"Verdana","font size":"12px","layout":"Layout1","container":"2"},{"id":"btnChgPrt","field type":"css button","value":"C/P","left":"15px","top":"10px","width":"50px","theme":"B - Blue","small button":"true","height":"30px","response":{"fieldName":"btnChgPrt","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"straight edge":"all","shortcut key":"F3","font size":"11px","layout":"Layout1","container":"3"},{"id":"OutputField5","field type":"output field","css class":"outputField","value":{"fieldName":"WMNAME","dataLength":"40","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[WMNAME]"},"left":"265px","top":"5px","color":"#FFFFFF","font family":"Verdana","font size":"8px","width":"95px","layout":"Layout1","container":"3"},{"id":"Label5","field type":"output field","css class":"label","value":"User:","left":"210px","top":"5px","width":"45px","color":"#FFFFFF","font family":"Verdana","font size":"8px","layout":"Layout1","container":"3"},{"id":"OutputField6","field type":"output field","css class":"outputField","value":{"fieldName":"PTDESC","dataLength":"30","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[PTDESC]"},"left":"265px","top":"20px","color":"#FFFFFF","font family":"Verdana","font size":"8px","width":"75px","layout":"Layout1","container":"3"},{"id":"Label6","field type":"output field","css class":"label","value":"Printer:","left":"190px","top":"20px","width":"65px","color":"#FFFFFF","font family":"Verdana","font size":"8px","layout":"Layout1","container":"3"},{"id":"OutputField7","field type":"output field","css class":"outputField","value":{"fieldName":"storage","dataLength":"10","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[storage]"},"left":"265px","top":"35px","color":"#FFFFFF","font family":"Verdana","font size":"8px","layout":"Layout1","container":"3"},{"id":"Label7","field type":"output field","css class":"label","value":"Staging Area:","left":"185px","top":"35px","width":"70px","color":"#FFFFFF","font family":"Verdana","font size":"8px","layout":"Layout1","container":"3"},{"id":"Layout2","field type":"layout","left":"5px","top":"55px","template":"simple container","height":"87%","width":"100%","layout":"Layout1","container":"2"},{"id":"Layout3","field type":"layout","left":"5px","top":"0px","template":"simple container","height":"13%","width":"100%","center horizontally":"true","layout":"Layout1","container":"2"},{"id":"ddBoxNum","field type":"select box","value":{"fieldName":"C1BOX#","dataLength":"6","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[C1BOX#]"},"left":"240px","top":"25px","choices":{"fieldName":"boxNumbs","dataLength":"1000","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none"},"width":"90px","choice values":{"fieldName":"BoxNumbers","dataLength":"1000","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none"},"font family":"Verdana","font size":"12px","tab index":"999","error message location":"bottom","error message":"Box Number may not be blank.","error condition":{"fieldName":"errBox01","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"error enhanced mode":"0","error messages":"1 message","onchange":"var dd = getObj(this.id);\nif (dd.value == 'NewBox') {\n  pui.click('btnNewBox');\n}","layout":"Layout1","container":"1"},{"id":"btnSflClick","field type":"button","css class":"button","value":"Click Here","left":"35px","top":"20px","width":"25px","cursor":"default","response":{"fieldName":"btnSflClck","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"height":"15px","z index":"5","layout":"Layout1","container":"1"},{"id":"txtSflRow","field type":"textbox","css class":"input","value":{"fieldName":"SELECDROW","dataLength":"5","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[SELECDROW]"},"left":"35px","top":"20px","width":"25px","z index":"6","layout":"Layout1","container":"1"},{"id":"btnRplen","field type":"css button","value":"R/P","response":{"fieldName":"btnRplen","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"font size":"11px","theme":"B - Blue","small button":"true","straight edge":"all","shortcut key":"F5","left":"75px","top":"10px","height":"30px","width":"50px","layout":"Layout1","container":"3"},{"id":"btnEnter","field type":"css button","value":"Go","response":{"fieldName":"btnEnter","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"font size":"11px","theme":"F - Green","small button":"true","straight edge":"all","shortcut key":"Enter","left":"85px","top":"10px","height":"30px","width":"50px","layout":"Layout1","container":"1"},{"id":"Grid1","field type":"grid","css class":"mobile-grid","left":"0px","top":"0px","number of rows":"7","number of columns":"3","column widths":"115,165,78","column headings":"Loc, Item, Qty/Pck","header height":"30","border color":"#dddddd","row height":"58","has header":"true","expand to layout":"true","height":"378px","width":"359px","record format name":"SFLREC","display subfile":{"fieldName":"SFLDSP","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"true / false"},"display control record":{"fieldName":"SFLDSPCTL","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"true / false"},"clear subfile":{"fieldName":"SFLCLR","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"true / false"},"subfile record number":{"fieldName":"SFLRCDNBR","dataLength":"5","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":""},"subfile next changed":{"fieldName":"SFLNXTCHG","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"true / false"},"z index":"21","resizable columns":"false","movable columns":"false","onrowclick":"changeElementValue('txtSflRow',row);\npui.click('btnSflClick');","odd row font color":{"fieldName":"rowColor","customTrue":"#606060","customFalse":"#000000","dataType":"indicator","formatting":"Indicator","indFormat":"Custom Values"},"even row font color":{"fieldName":"rowColor","customTrue":"#606060","customFalse":"#000000","dataType":"indicator","formatting":"Indicator","indFormat":"Custom Values"},"layout":"Layout2","container":"1"},{"id":"OutputField3","field type":"output field","css class":"outputField","value":{"fieldName":"S1QTY","dataLength":"6","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[S1QTY]"},"left":"235px","top":"105px","font family":"Verdana","font size":"12px","height":"100","layout":"Layout2","container":"1"},{"id":"OutputField4","field type":"output field","css class":"outputField","value":{"fieldName":"S1LOC","dataLength":"11","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[S1LOC]"},"left":"15px","top":"5px","font family":"Verdana","font size":"12px","height":"15px","color":{"fieldName":"rowColor","customTrue":"#606060","customFalse":"#000000","dataType":"indicator","formatting":"Indicator","indFormat":"Custom Values"},"grid":"Grid1","column":"0"},{"id":"OutputField8","field type":"output field","css class":"outputField","value":{"fieldName":"S1ITM#","dataLength":"14","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[S1ITM#]"},"left":"10px","top":"5px","font family":"Verdana","font size":"12px","width":"95px","color":{"fieldName":"rowColor","customTrue":"#606060","customFalse":"#000000","dataType":"indicator","formatting":"Indicator","indFormat":"Custom Values"},"grid":"Grid1","column":"1"},{"id":"OutputField9","field type":"output field","css class":"outputField","value":{"fieldName":"S1QTY","dataLength":"6","decPos":"0","numSep":"false","zeroBalance":"true","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[S1QTY]"},"left":"5px","top":"5px","font family":"Verdana","font size":"12px","color":{"fieldName":"rowColor","customTrue":"#606060","customFalse":"#000000","dataType":"indicator","formatting":"Indicator","indFormat":"Custom Values"},"grid":"Grid1","column":"2"},{"id":"OutputField2","field type":"output field","css class":"outputField","value":{"fieldName":"s1Seq#","dataLength":"3","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[s1Seq#]"},"left":"20px","top":"35px","visibility":"hidden","grid":"Grid1","column":"0"},{"id":"OutputField1","field type":"output field","css class":"outputField","value":{"fieldName":"s1box#","dataLength":"6","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[s1box#]"},"left":"55px","top":"25px","font family":"Verdana","font size":"12px","font weight":"bold","grid":"Grid1","column":"0"},{"id":"Label8","field type":"output field","css class":"label","value":"Box:","left":"10px","top":"25px","width":"40px","font family":"Verdana","font size":"12px","text align":"right","visibility":{"fieldName":"shwBoxLbl","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"visible / hidden"},"grid":"Grid1","column":"0"},{"id":"HtmlContainer1","field type":"html container","value":{"fieldName":"S1ITDSC","dataLength":"40","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[S1ITDSC]"},"left":"10px","top":"25px","html":{"fieldName":"S1ITDSC","dataLength":"40","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[S1ITDSC]"},"white space":"normal","width":"145px","height":"30px","font family":"Verdana","font size":"12px","color":{"fieldName":"rowColor","customTrue":"#606060","customFalse":"#000000","dataType":"indicator","formatting":"Indicator","indFormat":"Custom Values"},"grid":"Grid1","column":"1"},{"id":"OutputField9_copy","field type":"output field","css class":"outputField","value":{"fieldName":"S1QTYPCK","dataLength":"6","decPos":"0","numSep":"false","zeroBalance":"true","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[S1QTYPCK]"},"color":{"fieldName":"rowColor","customTrue":"#606060","customFalse":"#000000","dataType":"indicator","formatting":"Indicator","indFormat":"Custom Values"},"font family":"Verdana","font size":"12px","left":"5px","top":"25px","width":"69px","grid":"Grid1","column":"2"}]}}]},{"metaData":{"screen":{"record format name":"EDTCTL","external css":"/profoundui/userdata/css/android.css","show as window":"true","external javascript":"/profoundui/userdata/js/gridOnChange.js"},"items":[{"id":"Dialog1","field type":"panel","value":"Edit Scan(s)","left":"25px","top":"65px","width":"330px","height":"475px","panel style":"Professional Dialog","z index":"8"},{"id":"Layout1","field type":"layout","left":"35px","top":"100px","template":"simple container","height":"101px","width":"310px","overflow x":"hidden","overflow y":"hidden"},{"id":"Layout2","field type":"layout","css class":"scroller","left":"35px","top":"205px","template":"simple container","height":"252px","width":"305px","z index":" ","overflow x":"hidden","overflow y":"hidden"},{"id":"Layout3","field type":"layout","left":"35px","top":"460px","template":"simple container","height":"73px","width":"305px","overflow x":"hidden","overflow y":"hidden"},{"id":"Label1","field type":"output field","css class":"label","value":"Item Number:","left":"20px","top":"15px","width":"95px","layout":"Layout1","container":"1"},{"id":"OutputField1","field type":"output field","css class":"outputField","value":{"fieldName":"EDITM#","dataLength":"13","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[EDITM#]"},"left":"120px","top":"15px","width":"80px","layout":"Layout1","container":"1"},{"id":"OutputField2","field type":"output field","css class":"outputField","value":{"fieldName":"EDITDSC","dataLength":"30","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[EDITDSC]"},"left":"25px","top":"35px","width":"235px","z index":" ","layout":"Layout1","container":"1"},{"id":"Label2","field type":"output field","css class":"label","value":"Scanned Data:","left":"20px","top":"55px","width":"95px","layout":"Layout1","container":"1"},{"id":"OutputField3","field type":"output field","css class":"outputField","value":{"fieldName":"EDSCAN","dataLength":"14","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[EDSCAN]"},"left":"120px","top":"55px","width":"135px","layout":"Layout1","container":"1"},{"id":"Label3","field type":"output field","css class":"label","value":"Location:","left":"45px","top":"75px","width":"70px","layout":"Layout1","container":"1"},{"id":"OutputField4","field type":"output field","css class":"outputField","value":{"fieldName":"EDLOC","dataLength":"10","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[EDLOC]"},"left":"120px","top":"75px","layout":"Layout1","container":"1"},{"id":"Grid1","field type":"grid","css class":"mobile-grid","left":"0px","top":"0px","number of rows":"6","number of columns":"3","column widths":"44,142,117","column headings":"Dlt,Box,Qty","header height":"30","border color":"#dddddd","row height":"40","has header":"true","expand to layout":"true","height":"230px","width":"304px","display subfile":{"fieldName":"sflDspE","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"true / false"},"display control record":{"fieldName":"sflDspCtlE","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"true / false"},"clear subfile":{"fieldName":"sflClrE","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"true / false"},"record format name":"EDTSFL","layout":"Layout2","container":"1"},{"id":"btnEDTSave","field type":"css button","value":"Save","left":"65px","top":"25px","width":"65px","theme":"B - Blue","small button":"true","response":{"fieldName":"btnEdtSv","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"straight edge":"all","layout":"Layout3","container":"1"},{"id":"btnEDTCncl","field type":"css button","value":"Cancel","response":{"fieldName":"btnEdtCncl","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"theme":"G - Red","small button":"true","straight edge":"all","left":"175px","top":"25px","width":"65px","shortcut key":"Escape","layout":"Layout3","container":"1"},{"id":"btnNewBoxE","field type":"button","css class":"button","left":"95px","top":"35px","width":"25px","cursor":"default","response":{"fieldName":"btnNewBoxE","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"z index":"-1","layout":"Layout3","container":"1"},{"id":"txtRowNumberE","field type":"textbox","css class":"input","value":{"fieldName":"rowNumberE","dataLength":"5","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[rowNumberE]"},"left":"260px","top":"85px","width":"35px","visibility":"hidden","layout":"Layout1","container":"1"},{"id":"cbDeleteScan","field type":"checkbox","value":{"fieldName":"DltScan","dataLength":"1","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[DltScan]"},"left":"15px","top":"10px","checked value":"'1'","unchecked value":"'0'","grid":"Grid1","column":"0"},{"id":"ddEDBox#","field type":"select box","value":{"fieldName":"EDBOX#","dataLength":"6","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[EDBOX#]"},"font family":"Verdana","font size":"12px","choices":{"fieldName":"edBoxNums","dataLength":"1000","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none"},"choice values":{"fieldName":"edBoxNums","dataLength":"1000","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none"},"left":"20px","top":"10px","width":"110px","tab index":"2","onchange":"var obj = getObj(this.id);\nif (trim(obj.value) == 'NewBox') {\n   gridOnChange(this.id, row, 'btnNewBoxE');\n}","grid":"Grid1","column":"1"},{"id":"TextBox1","field type":"textbox","css class":"input","value":{"fieldName":"EDQTY","dataLength":"7","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[EDQTY]"},"left":"20px","top":"10px","width":"58px","error message location":"bottom","error messages":"2 messages","input type":"number","error message":"Item Cannot be zero.","error condition":{"fieldName":"errQtyE01","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"error enhanced mode":"0","error message 2":"Total Qty cannot exceed Order Qty.","error condition 2":{"fieldName":"errQtyE02","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"error enhanced mode 2":"0","grid":"Grid1","column":"2"},{"id":"OutputField5","field type":"output field","css class":"outputField","value":{"fieldName":"edseq#","dataLength":"9","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[edseq#]"},"left":"45px","top":"10px","z index":" ","height":"15px","width":"25px","grid":"Grid1","column":"1"}]},"formats":[{"name":"EDTCTL","file":"WMS0006DD","library":"PUIPGM","fileId":1,"active":true,"ref":{},"data":{"BTNEDTCNCL":"","BTNEDTSV":"","BTNNEWBOXE":"","EDITDSC":"HOWES DIESEL TREAT 1/2 GALLONS","EDITM#":"103060","EDLOC":"51-23072A","EDSCAN":"103060","ROWNUMBERE":"0","SFLCLRE":"0","SFLDSPCTLE":"1","SFLDSPE":"1"},"subfiles":{"EDTSFL":{"ref":{},"field names":["DLTSCAN","EDBOX#","EDBOXNUMS","EDQTY","EDSEQ#","ERRQTYE01","ERRQTYE02"],"data":[["0","000001","000001,NewBox","3","1","",""],["0","000001","000001,NewBox","2","2","",""],["0","000001","000001,NewBox","1","3","",""]]}},"metaData":{"screen":{"record format name":"EDTCTL","external css":"/profoundui/userdata/css/android.css","show as window":"true","external javascript":"/profoundui/userdata/js/gridOnChange.js"},"items":[{"id":"Dialog1","field type":"panel","value":"Edit Scan(s)","left":"25px","top":"65px","width":"330px","height":"475px","panel style":"Professional Dialog","z index":"8"},{"id":"Layout1","field type":"layout","left":"35px","top":"100px","template":"simple container","height":"101px","width":"310px","overflow x":"hidden","overflow y":"hidden"},{"id":"Layout2","field type":"layout","css class":"scroller","left":"35px","top":"205px","template":"simple container","height":"252px","width":"305px","z index":" ","overflow x":"hidden","overflow y":"hidden"},{"id":"Layout3","field type":"layout","left":"35px","top":"460px","template":"simple container","height":"73px","width":"305px","overflow x":"hidden","overflow y":"hidden"},{"id":"Label1","field type":"output field","css class":"label","value":"Item Number:","left":"20px","top":"15px","width":"95px","layout":"Layout1","container":"1"},{"id":"OutputField1","field type":"output field","css class":"outputField","value":{"fieldName":"EDITM#","dataLength":"13","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[EDITM#]"},"left":"120px","top":"15px","width":"80px","layout":"Layout1","container":"1"},{"id":"OutputField2","field type":"output field","css class":"outputField","value":{"fieldName":"EDITDSC","dataLength":"30","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[EDITDSC]"},"left":"25px","top":"35px","width":"235px","z index":" ","layout":"Layout1","container":"1"},{"id":"Label2","field type":"output field","css class":"label","value":"Scanned Data:","left":"20px","top":"55px","width":"95px","layout":"Layout1","container":"1"},{"id":"OutputField3","field type":"output field","css class":"outputField","value":{"fieldName":"EDSCAN","dataLength":"14","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[EDSCAN]"},"left":"120px","top":"55px","width":"135px","layout":"Layout1","container":"1"},{"id":"Label3","field type":"output field","css class":"label","value":"Location:","left":"45px","top":"75px","width":"70px","layout":"Layout1","container":"1"},{"id":"OutputField4","field type":"output field","css class":"outputField","value":{"fieldName":"EDLOC","dataLength":"10","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[EDLOC]"},"left":"120px","top":"75px","layout":"Layout1","container":"1"},{"id":"Grid1","field type":"grid","css class":"mobile-grid","left":"0px","top":"0px","number of rows":"6","number of columns":"3","column widths":"44,142,117","column headings":"Dlt,Box,Qty","header height":"30","border color":"#dddddd","row height":"40","has header":"true","expand to layout":"true","height":"230px","width":"304px","display subfile":{"fieldName":"sflDspE","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"true / false"},"display control record":{"fieldName":"sflDspCtlE","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"true / false"},"clear subfile":{"fieldName":"sflClrE","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"true / false"},"record format name":"EDTSFL","layout":"Layout2","container":"1"},{"id":"btnEDTSave","field type":"css button","value":"Save","left":"65px","top":"25px","width":"65px","theme":"B - Blue","small button":"true","response":{"fieldName":"btnEdtSv","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"straight edge":"all","layout":"Layout3","container":"1"},{"id":"btnEDTCncl","field type":"css button","value":"Cancel","response":{"fieldName":"btnEdtCncl","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"theme":"G - Red","small button":"true","straight edge":"all","left":"175px","top":"25px","width":"65px","shortcut key":"Escape","layout":"Layout3","container":"1"},{"id":"btnNewBoxE","field type":"button","css class":"button","left":"95px","top":"35px","width":"25px","cursor":"default","response":{"fieldName":"btnNewBoxE","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"z index":"-1","layout":"Layout3","container":"1"},{"id":"txtRowNumberE","field type":"textbox","css class":"input","value":{"fieldName":"rowNumberE","dataLength":"5","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[rowNumberE]"},"left":"260px","top":"85px","width":"35px","visibility":"hidden","layout":"Layout1","container":"1"},{"id":"cbDeleteScan","field type":"checkbox","value":{"fieldName":"DltScan","dataLength":"1","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[DltScan]"},"left":"15px","top":"10px","checked value":"'1'","unchecked value":"'0'","grid":"Grid1","column":"0"},{"id":"ddEDBox#","field type":"select box","value":{"fieldName":"EDBOX#","dataLength":"6","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none","designValue":"[EDBOX#]"},"font family":"Verdana","font size":"12px","choices":{"fieldName":"edBoxNums","dataLength":"1000","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none"},"choice values":{"fieldName":"edBoxNums","dataLength":"1000","trimLeading":"false","trimTrailing":"true","blankFill":"false","rjZeroFill":"false","dataType":"char","formatting":"Text","textTransform":"none"},"left":"20px","top":"10px","width":"110px","tab index":"2","onchange":"var obj = getObj(this.id);\nif (trim(obj.value) == 'NewBox') {\n   gridOnChange(this.id, row, 'btnNewBoxE');\n}","grid":"Grid1","column":"1"},{"id":"TextBox1","field type":"textbox","css class":"input","value":{"fieldName":"EDQTY","dataLength":"7","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[EDQTY]"},"left":"20px","top":"10px","width":"58px","error message location":"bottom","error messages":"2 messages","input type":"number","error message":"Item Cannot be zero.","error condition":{"fieldName":"errQtyE01","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"error enhanced mode":"0","error message 2":"Total Qty cannot exceed Order Qty.","error condition 2":{"fieldName":"errQtyE02","customTrue":"","customFalse":"","dataType":"indicator","formatting":"Indicator","indFormat":"1 / 0"},"error enhanced mode 2":"0","grid":"Grid1","column":"2"},{"id":"OutputField5","field type":"output field","css class":"outputField","value":{"fieldName":"edseq#","dataLength":"9","decPos":"0","numSep":"false","zeroBalance":"false","numBlankFill":"false","zeroFill":"false","curSym":"","dataType":"zoned","formatting":"Number","negNum":"-999.00","units":"","designValue":"[edseq#]"},"left":"45px","top":"10px","z index":" ","height":"15px","width":"25px","grid":"Grid1","column":"1"}]}}]}],"translations":{}}
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Problem with a window

Post by Scott Klement »

This was a tricky one, but looking into your JSON dump, I see you have a layout named Layout2 that is inside the EDTCTL record format. This layout has the "scroller" CSS class applied to it, which would make it scrollable on a mobile device *IF* the layout with "scroller" doesn't fit inside it's parent layout. Since it is not inside of another layout, this goes haywire. When the iScroll code (an open source mobile-like scrollbar library we incorporate) tries to draw the scrollbar, it gets confused and hides everything in the parent, which in this case is your window -- so it hides the whole record format.

The "scroller" class isn't doing you any good here. Please just right-click the "css class" property of Layout2 in the EDTCTL record format and remove the property (removing the scroller class). That should fix the problem.

Also I notice you are using a very old version of Profound UI. Please note that this version (4.8.0) is no longer supported by Profound Logic. If this ends up being a bug, we cannot fix anything in a version that old -- you would need to update to the current version first. (In this case, the current version also causes your dialog to disappear with the scroller class -- I tested it. So same problem is there -- but I don't think it's a bug, I think you're just using the scroller improperly.)

Hope that helps.
mwalter
Experienced User
Posts: 140
Joined: Wed Sep 14, 2016 2:58 pm
First Name: Mark
Last Name: Walter
Company Name: Paragon Consulting Services
Contact:

Re: Problem with a window

Post by mwalter »

Thanks, Scott.

I believe the powers that be will be upgrading to the newest version of ProfoundUI soon. I'm just a consultant here.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests