1 person found this helpful
Not necessarily you need to use .xml as data provider to ibidatagrid. You can use a .fex as source.
Just an example:
<ibi:ibiDataGrid id="dataSup" width="124" height="100" seturl=test.fex visible="true"
Note: test.fex - give the complete path of fex file
Thank you so much for your response.
<ibi:ibiDataGrid x="136" y="39" width="551" height="253" seturl="C:\ibi\apps\sample_procedures\test_sample.fex" visible="true">
I tried with the above code and get no output. In note you told to give the full path of fex. Can you jus tell me if the code is correct?
I do get the output for test_sample.fex when I run through webfocus
1. While loading ibi components its mandatory to place the components within ibiCanvas. So check if you have ibiCanvas
2. Place the .fex procedure under Data server. If you place under MRE, data will not be loaded until the login credentials are not given in the fex path. Still if you have your .fex in MRE, you should execute the fex once before you run your flex application.
3. Try executing the above seturl from your browser. If you have problem in getting output, then it seems the path is incorrect.
4. Finally, after your flex UI is launched, right click on the screen and select "Show message window" - this will show you the trace of how the ibidatagrid is loading.
Everything is fine as you mentioned
When I see the message window, after processing xml, it says data error. But the fex executes fine in webfocus.
May I know what will be the problem then?
Generally if the fex file name / path is wrongly entered, you will get the data error. I tried simulating the same scenarion at my end, and in case of wrong file name, i get "Data Error".
Executing the fex from MRE, by right click and Run option will work fine. Try once again from your IE, by entering the complete seturl and click go - see if you get output.
If possible, can you send me your code.
I tried entering the seturl in IE and it displays the text view of the fex file instead of output.
I just placed ibicanvas and ibigrid. I set the seturl as "C:\ibi\apps\sample_procedures\test_sample.fex".
Ramya, So does it work, are you getting a loaded datagrid?
Thanks for your very quick response. Will try once again and will let you know