I worked up this example for testing - try it in the IW, works great:
Then using a table of reports, I tried to make an XD tree, adding fields to hold the image numbers I need.
In the IW my tree data looks correct:
Here is the script:
But when running this simple tree control script, this is what I get:
The tree should be displaying just the DISPLAY name and the text box below the actual path to the report.
Code:
dim images as c dim list as c dim vList as c images = <<%str% $$mini.folder $$mini.file.open $$generic.preview %str% list = <<%str% 1+2cat1.3{DATA=Report to Preview}A 1+2cat1.3B 1+2cat1.3C 1+2cat1.3{DATA=Report to Preview}D 1+2cat2.3E 1+2cat2.3F 1+2cat2.3G 1+2cat2.3H %str% result=ui_dlg_box("Simple Tree",<<%dlg% [%I=@images%.30,15vlist^<list] |<OK>; {ysize=1} [.30vlist] %dlg% )
In the IW my tree data looks correct:
Code:
auto_list_vtree = table.external_record_content_get("replist","lvl1+alltrim(group)+\".\"+alltrim(lvl2)+\"{data=\"+alltrim(dictname)+\"}\"+display","group+display") ?auto_list_vtree = 1+2ACT_MENU.3{data=Act Menu Rep@c:\a5v11\skkv11\act_menu.ddd}Act Menu Rep 1+2A_HELP.3{data=Prn Help@c:\a5v11\skkv11\a_help.ddd}Prn Help 1+2A_HELP.3{data=Quick Prn Help@c:\a5v11\skkv11\a_help.ddd}Quick Prn Help 1+2B_MSGREP.3{data=Msg Code Matrix@c:\a5v11\skkv11\b_msgrep.ddd}Msg Code Matrix 1+2DIRECTORY.3{data=Dir Phone List@c:\a5v11\skkv11\directory.ddd}Dir Phone List 1+2INVOICE.3{data=Invoice@c:\a5v11\skkv11\invoice.set}Invoice 1+2INVOICE.3{data=Quick Invoice@c:\a5v11\skkv11\invoice.set}Quick Invoice
Code:
dim images as c DIM vtree as C images = <<%str% $$mini.folder $$folder.open $$generic.preview %str% dim auto_list_vtree as c auto_list_vtree = table.external_record_content_get("replist","lvl1+alltrim(group)+\".\"+alltrim(lvl2)+\"{data=\"+alltrim(dictname)+\"}\"+display","group+display") 'msgbox("",auto_list_vtree,0) 'end temp_count = w_count(auto_list_vtree,crlf()) DELETE a_vtree DIM a_vtree[temp_count] as c a_vtree.initialize(auto_list_vtree) ok_button_label = "&OK" cancel_button_label = "&Cancel" varC_result = ui_dlg_box("Alpha Five",<<%dlg% {region} Type prompt here:; [%D=".";I=@images%.40,25vtree^<a_vtree]; [.40vtree]; {endregion}; {line=1,0}; {region} <*15=ok_button_label!OK> <15=cancel_button_label!CANCEL> {endregion}; %dlg%)
But when running this simple tree control script, this is what I get:
The tree should be displaying just the DISPLAY name and the text box below the actual path to the report.
Comment