In legacy we did a customization in wft that when user initiate a workflow in the iw-bin/iw_cgi_wrapper.cgi/iwwft_instantiator.cgi screen we have set of widgets.
In this when user select the browse button a new window will open and list of values will populate from database and display and when user click on select on specified list the value will come and display in Text box.
We are trying to achive same functionality in Custom_Instantiate.cfg but when I am selecting the value in the value is not coming to Textbox. I am not sure I am doing in right way or not.
Please find the below functionality from WFT and WFM (Custom_instantiate form)
<script language="JavaScript">
function show_${field}_win() {
var newsletter_type = getSelectedValue(this.iwwft_instantiator.nl_type);
var country_folder = getSelectedValue(this.iwwft_instantiator.country_folder);
var url = "http://${server_name}:8080/IWInterwoven/webengine/iw/ui/IWISelectNewsletters?iw_form_name=iwwft_instantiator&iw_item_name=dcr&newsletterType="+ newsletter_type + "&countryCode=" + country_folder + "&command=IW";
document.domain = "bvasndd03.ilg.ad";
newwin = window.open(url,"", "height=500,width=650,resizable,scrollbars");
}
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td nowrap>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="1"><img src="/iw-cc/base/images/dialog_btn_left.gif"/></td>
<td nowrap valign="middle" align="middle" background="/iw-cc/base/images/dialog_btn_mid.gif">
<a href="javascript:show_${field}_win()" class="iw-base-actionlist-link">
Select...
</a>
</td>
<td width="1"><img src="/iw-cc/base/images/dialog_btn_right.gif"/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
-------------------------------------------------------------------------------------------------------------------------------
Same functionality trying to achive in WFM (Custom Instantiate form)
<script>
<![CDATA[
IWEventRegistry.addFormHandler("onFormInit", init);
function init()
{
IWEventRegistry.addItemHandler("/Config/News_letter_DB","onCallout",news_letter);
}
function news_letter(item){
var item1 = IWDatacapture.getItem("/Config/Newsletter");
var newsletter_type= item1.getOptions()[item1.getValue()].value;
var item2 = IWDatacapture.getItem("/Config/Region");
var country_folder= item2.getOptions()[item2.getValue()].value;
var url= window.open("http://bvasndd04.ilg.ad:8080/IWInterwoven/webengine/iw/ui/IWISelectNewsletters?iw_form_name=iwwft_instantiator&iw_item_name=dcr&newsletterType="+ newsletter_type + "&countryCode=" + country_folder + "&command=IW");
document.domain = "bvasndd04.ilg.ad";
newwin = window.open(url,"", "height=500,width=650,resizable,scrollbars");
}
]]>
</script>
<item name="News_letter_DB" pathid="News_letter_DB">
<label>Please select Newsletter</label>
<text >
<callout label="Browse"/>
</text>
</item>
Please check and let us know how can we achieve this in WFM..... I can provide more details if anybody needs.