Hi Manu,You can try the Items-per-page attribute in the element < data-type > in your DCT, however, I doubt, it will improve your loading time as inline are supposed to be executed when the form loads not the page.
Thanks Pawan, but if it is still rendering complete dct even with items-per-page attribute in the element then it might not help me...I don have much info on this attribute where can i get help on this? I have read in Form API pdf about IWDatacapture.getPageCount would this can help me in a way n how?
- Do we have control on inline cmd execution depending on visiblity control in the DC Template?No. Once again, inline's are used to build a Data Capture Template. Every single one of them is evaluated upfront.
Not exactly. I have used written inlines that will load different data depending on the role of a person, or if you have a new DCR or open an existing. Bo's point that this runs at the instanciation of the DCT is accurate, but you can still do some fun things with the inline.
What you do within inline code is certainly up to you, even if you do *nothing*. My only point was that the code will be unconditionally evaluated for every single "inline" you have
In each inline cmd i give a call to ipl file which actually establish conn to DB and stores the DB results in array which is then printed in the dcr whether it is new form entry or edit existing. Coz of this if there are 50 + inline cmd associated with DCT fields are 50+ DB conn for individual fields. How this can be reduced so dcr loading time is reducedThanksManu G
There are numerous mechanisms to perform this sort of caching. For example, you can make your inline code to check some "Ready to go" substitution File. If it's there, use it. If it'snot there and only if it's not there, connect to DB, build the File and return it. This way, at worst you'll connect to DB once. All subsequent inline calls will have a File (Cache) to use. Note that you would also have to modify DB processes/procedures so that they delete Cache if relevant Tables change.
I tried caching the DB results [...] it has improved the loading of dcrs but not that significantly
My approach has just reduced the time spent in establishing DB conn and firing select queries for my 50 odd fields in DCT. Though DCT is still runnig 50 inline cmd, now for parsing xml file which is storing the db results.NE ways I really appreciated your prompt responses.ThanksManu
Do you really need 50 inline commands?Are the fields that you're putting substitutions in place for that far from one another that you cannot [..] fewer overhead processes involved) yes 50 inline cmd are called as each field in the DCT is diff from another and populates different values.So dont really think performance tuning can be done if the inline exist in DCT. And really not doesnot make sense in putting the single select/multi-select/radio button values of fields in the DCT and then loading the DCR.
Do you really need 50 inline commands?Are the fields that you're putting substitutions in place for that far from one another that you cannot [..] fewer overhead processes involved)