Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: saved table values not displayed in array row source combos

$
0
0
Re: saved table values not displayed in array row source combos
FoxInCloud
Re: saved table values not displayed in array row source combos
Dec. 26, 2012
06:50 am
3OD0EO0DNShow this entire thread in new window
Gratar Image based on email address
From:Garth Groft
To:Thierry Nivelet (FoxInCloud)
sorry - apparently, i uploaded the files on my server (older backup). i just re-uploaded the Forms folder files and customer data folder HAV001 files. using Thisform.pageframe1.page1.combo2.rowsource = "" in the options form's init makes no difference. these arrays are not being re-defined, but defined for the first and only time.


just downloaded the source, this is what I've got

*!* SET FILTER TO IN insuldispSELECT insulevap FROM insulevap ; INTO ARRAY thisform.pageframe1.page3.COMBO1.waRowSource Thisform.pageframe1.page3.combo1.rowsource = "this.waRowSource" Thisform.pageframe1.page3.combo1.value = options.insulevapSELECT insulcond FROM insuldisp ; INTO ARRAY thisform.pageframe1.page3.COMBO3.waRowSource Thisform.pageframe1.page3.combo3.rowsource = "this.waRowSource" Thisform.pageframe1.page3.combo3.value = options.insuldispENDIF thisform.setsensors()SELECT nfdiscine FROM nfdiscine ; WHERE evdigit = units.evdigit AND BETWEEN(units.evapmca,ampsmin,ampsmax) ; INTO ARRAY thisform.pageframe1.page1.COMBO2.waRowSource Thisform.pageframe1.page1.combo2.rowsource = "this.waRowSource" Thisform.pageframe1.page1.combo2.value = options.nfdiscineSELECT nfdiscinc FROM nfdiscinc ; WHERE cvdigit = units.cvdigit AND BETWEEN(units.condmca,ampsmin,ampsmax) ; INTO ARRAY thisform.pageframe1.page1.COMBO4.waRowSource Thisform.pageframe1.page1.combo4.rowsource = "this.waRowSource" Thisform.pageframe1.page1.combo4.value = options.nfdiscinc

Can't see any

Thisform.pageframe1.page*.combo*.rowsource = ""


as you suggested, i added a clear out rowsourse to every combo i th eoptins form:

Thisform.pageframe1.page1.combo2.rowsource = ""
SELECT nfdiscine FROM nfdiscine ;
WHERE evdigit = units.evdigit AND BETWEEN(units.evapmca,ampsmin,ampsmax) ;
INTO ARRAY thisform.pageframe1.page1.COMBO2.waRowSource
Thisform.pageframe1.page1.combo2.rowsource = "this.waRowSource"
Thisform.pageframe1.page1.combo2.value = options.nfdiscine

this change made no differenece - still works in LAN mode and fails in Web mode. the SQL statement shown here is correct as written and yields the expected array comtents for every combo. eampsmin and ampsmax are fields in the nfdiscine table. SQL could read BETWEEN(units.evapmca,nfdiscine.ampsmin,nfdiscine.ampsmax) and yield the same array elements. the saved values are all correct and the combos contains the correct elements in every case, but the displayed values do not match the saved values in Web mode. there is a emply element in each array so that the user can set a combo to not empty meaning not selected). we we may be seeing is the value displayed is the empty element and not the saved value.


Garth,

you need to clear .rowsource before changing its contents and re-assign it.

SELECT nfdiscine FROM nfdiscine ; WHERE evdigit = units.evdigit AND BETWEEN(units.evapmca,ampsmin,ampsmax) ; INTO ARRAY thisform.pageframe1.page1.COMBO2.waRowSource Thisform.pageframe1.page1.combo2.rowsource = "this.waRowSource" Thisform.pageframe1.page1.combo2.value = options.nfdiscine

should become
Thisform.pageframe1.page1.combo2.rowsource = ""SELECT nfdiscine FROM nfdiscine ; WHERE evdigit = units.evdigit AND BETWEEN(units.evapmca,ampsmin,ampsmax) ; INTO ARRAY thisform.pageframe1.page1.COMBO2.waRowSource Thisform.pageframe1.page1.combo2.rowsource = "this.waRowSource" Thisform.pageframe1.page1.combo2.value = options.nfdiscine

besides, your WHERE condition "BETWEEN(units.evapmca,ampsmin,ampsmax)" looks odd


thanks i will try the last ftp option.

here are steps to reproduce the issue.

1. on Login scren, click user name text to autofill login entries. click Login.

2. on Welcome scren, click Edit Project.

3. on Projects screen, click Factory project (or any project) in Projects grid (top). click any unit in Units grid (bottom). click Edit Unit. click Design tab. Click "Calculate Performance".

4. on Modelsselection screen click "Proceed with Selected Unit".

5. on Options screen, observe all combos are empty on every page if in Web mode. data saved it displayed in LAN mode. in Web mode, select one or more combos and chose non-empty array elements. in particular use the Non-Fused Disconnect combo, options.nfdiscine (page 1, upper left)) for easy reference.

click Continue. Click Options tab again, in LAN mode saved data is displayed again and in Web mode the options.nfdiscine combo is empty as are the other combos.

6. Click Save Selection on far left (off pageframem), this sequence completes the unit selection cycle. you can repeat steps 1-6 over and over.

i will attempt to upload the screen shots i have but i could not make one that shows when the empty data is choosen to be displayed. i tried but, it is too involved to track thru all the FiC code that needs to be prcessed to prepare the Options form for viewing in Web mode. i put a stop/flag on when the options.nfdiscine table value changes but this happens hundreds of times before the options form is actually launched. the combo array includes "240 V, 3 PH, 100 Amps" and a blank element. if you save "240 V, 3 PH, 100 Amps" in options.nfdiscine, "240 V, 3 PH, 100 Amps" is displayed in LAN mode but " " is displayed in Web mode. web mode may be displaying the empty array element, but why since the value saved is also in the array element list and LAN mode is not confused?

garth


http://www.west-wind.com/wwThreads/default.asp?Thread=3I405Q4ES&MsgId=3I405Q4ET

Also, please indicate exact steps to reproduce


yes, i have all screenshots but i do not know how to use my snipping tool to copy and paste them here into this posting. i tried everthing that made sense to accomplish this.

the saved options data apprears in the options combos in LAN mode, but the combos are empty on the options form in Web mode. if you close the options form, the saved data is still there (not empty).

the options form is set to the default data session. the checkboxes all work showing what values are saved and save any changes. everything on this form works in LAN mode.

the debugging trail through the FiC FAS code is very long, i spent over 15 minutw going throuht the FiC screen refresh_ followed by many more procedures. you have the source code. i will update your FTP site with the current source now.

garth


don't get you ...
Any debugger screenshot?


yes, that is what i explained in: "the combo elements have the same string length as the associated option table value. the options table values are apparently discarded and replaced with nothing in the debugger going thru the FAS code."


Are you sure that the .Value selected exist in .RowSource (e.g. .waRowSource)?


we now that we are knocknig off the basic issue we are looking deeper.

on our options form we have over 40 combos with array rowsource. the form also has many check boxes.

when editing the form in FiC LAN mode, all data selected is saved in the options table and is displayed correctly on subsequent edits. in Web mode all saved combo values are displayed in the combo as empty on subsequent edits. all check boxes are displayed correctly in both LAN and Web modes.

the combo elements have the same string length as the associated option table value. the options table values are apparently discarded and replaced with nothing in the debugger going thru the FAS code.

garth











Viewing all articles
Browse latest Browse all 10393

Trending Articles