No success.
[size=2]Thanks,[/size]
I edit a DCR by clicking on edit link. I have a callout button[HTML] [/HTML] I do some activities in the CGI. Once I say submit the CGI should close by refreshing DCR. I am able to close CGI (:-))). But stuck with refreshing DCR, how can I do that any ideas ? I tried with (opener.top.datacapture.refreshForm() and with (alert(parent.window.opener.top.getScriptFrame().IWDatacapture);//.refreshForm() No success. [size=2]Thanks,[/size]
opener.top.datacapture.refreshForm(); is the correct syntax. Something else is probably happening (or not happening)so that your DCR stays visually unchanged. What are you trying to do? How do you modify DCR prior to issuing refresh?
Ok. Long story short, here is what I've read so far:>> I am able to add New List...to the DCR.>> I tried with opener.top.datacapture.refrefreshForm();... No success.If you are able to modify your Opener (DCR), why would you need a refresh? What is the problem manifestation?What's wrong?
Ok. Long story short, here is what I've read so far:
I am able to add New List...to the DCR.
>> I tried with opener.top.datacapture.refrefreshForm();... No success.
If you are able to modify your Opener (DCR), why would you need a refresh?
I add Empty items, once the user submits the CGI, the DCR has to be refreshed to appear those new items into the DCR form and the user has to fill in whatever he wants into newly included fields.
What do you mean by adding empty items?Are these items that are part of the DCT or are you trying to modify the DCT via your callout?Are these individual items or instances of replicants?Can you provide a more detailed / contextual use-case scenario?
7. Once he clicks Populate on CGI, I add empty fields to the DCR which I have created using above ipl like ...
...7. Once he clicks Populate on CGI, I add empty fields to the DCR which I have created using above ipl like [HTML] [/HTML].
Fish already asked that but you did not answer. So, let me reiterate:Does your CGI callout modify DCT (not DCR, DCT!) as well?
I modify only DCR not DCT. DCT is ready with all fields which are needed.Are inserted empty items instances of some replicant(s)? No.W,r,t my post I am done with all stuff Like DCT, adding empty fields (no value in it) to DCR, handling all stuff which I need using JS (I mean hidding fields which i don't want). To make availability of those empty fields, which I have added to DCR, I am refreshing DCR window manually. I don't want our users to refresh manually, instead I want to achieve through programatically inside my CGI.And, I am not adding any empty fields to DCR which are not defined in the DCT. I am adding only those fields which have been defined inside datacapture.cfg.Everything is working just I need to refresh DCR once callout is done (before or after CGI closes).Thanks You!
Are inserted empty items instances of some replicant(s)?
I'm still confused. If the fields are already defined in the DCT - are they simply "hidden" and your callout is being used to make them "visible"?
If that's the case - how are they hidden? hard-coded in the DCT or dynamically hidden on form loading via FormAPI?
If the former - then FormAPI might make them visible, but they'll be hidden the next time you load or refresh the window If the latter - it should be trivial to have your CGI issue the correct FormAPI code to make them visible
Callout does nothing w,r,t DCT. It only adds empty fields like,[ ... ] where $list is the new list of fieds which the user wants to add to DCR from the backend. My question is how can refresh my DCR to show them up ?My DCT is ::[HTML]Performance - Rating Specific [/HTML] Syntax might be incorrect purposely I have removed. Here test.pl adds 10 DCT items. I create my DCR from a perl program in a workflow, while doing so out of 10 depending upon some condition I include only few items out of 10. When the email goes to author containing edit link to this new DCR, he edits to fill in values. He will will see only those items which the perl program has included depending upon some condition, rest will be hidden using FormAPI.
<value> </value>
<value/>
function newDCRWindow() { var fullPath = '/iw-cc/edit?vpath=' + IWDatacapture.getDCRPath(); window.open(fullPath); top.window.close(); return true;}
The problem I am facing is top.window.close() or IWDatacapture.close() shows a confirm message asking "yes" or "no" to close. How can avoid this ?