Hi. I hope someone will be able to help me with what should be a fairly simple problem. My very limited html and AA knowledge is not helping out.
I use Ajax Callback xb function to retrieve data for the list.
In a javascript function I populate the list's fields with those values, showing them in a freeform layout.
The issue is, in those 1-2 seconds while the data is being retrieved, I can see only one row, empty but with the hardcoded character strings shown.
After that, all of the needed rows display and all looks Ok.
Is it possible to prevent the added html characters from showing up? I don't want to join them with the placeholders/variables beforehand.
And I wouldn't want to show the list in another panel and use setting the panel active to buy me those 1-2 seconds.
Example, from this excerpt of the freeform list layout, the words "Location:" and "|" will linger around before going away when the list is filled in.
----------
<div class="{dialog.style}ListItemLabelMain">Location: {city1} | {country1}</div>
----------
Now, I put the List in a Container and tried to hide the whole container with the list and the pre-display of those words.
Didn't help and the ghostly first record showed up again, I guess because I didn't specify those actions to go single-threaded.
This code in the onInitializeComplete of the component:
----------
{dialog.object}.setControlDisplay('CONTAINER_1',false);
{dialog.object}.runAction('ac_thegetxb');
{dialog.object}.setControlDisplay('CONTAINER_1',true);
// var lObj = {dialog.object}.getControl('listPlaces');
//lObj.refresh();
----------
Any ideas how can I get rid of the initial first record of the freeform list? Without adding javascript IFs, counting the records available at the time and hiding the hardcoded words.
Thanks,
Sime
I use Ajax Callback xb function to retrieve data for the list.
In a javascript function I populate the list's fields with those values, showing them in a freeform layout.
The issue is, in those 1-2 seconds while the data is being retrieved, I can see only one row, empty but with the hardcoded character strings shown.
After that, all of the needed rows display and all looks Ok.
Is it possible to prevent the added html characters from showing up? I don't want to join them with the placeholders/variables beforehand.
And I wouldn't want to show the list in another panel and use setting the panel active to buy me those 1-2 seconds.
Example, from this excerpt of the freeform list layout, the words "Location:" and "|" will linger around before going away when the list is filled in.
----------
<div class="{dialog.style}ListItemLabelMain">Location: {city1} | {country1}</div>
----------
Now, I put the List in a Container and tried to hide the whole container with the list and the pre-display of those words.
Didn't help and the ghostly first record showed up again, I guess because I didn't specify those actions to go single-threaded.
This code in the onInitializeComplete of the component:
----------
{dialog.object}.setControlDisplay('CONTAINER_1',false);
{dialog.object}.runAction('ac_thegetxb');
{dialog.object}.setControlDisplay('CONTAINER_1',true);
// var lObj = {dialog.object}.getControl('listPlaces');
//lObj.refresh();
----------
Any ideas how can I get rid of the initial first record of the freeform list? Without adding javascript IFs, counting the records available at the time and hiding the hardcoded words.
Thanks,
Sime
Comment