Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Formapi - onSave
sing
is there anyway I can pass a parameter to the saveHandler function when registering the onSave event. for example
function saveHandler(button) {
switch (button)
{
case IWDatacapture.SAVEAS_BUTTON:
var modifiedByItem = IWDatacapture.getItem("/" + itemName);
modifiedByItem.setVisible(true);
modifiedByItem.setReadOnly(false);
modifiedByItem.setValue("");
return true;
}
}
I would like to pass itemName to this function.
Any suggestion
Thanks
Find more posts tagged with
Comments
Migrateduser
There is no way to pass in custom arguments to handlers. A possible workaround in your case would be to maintain the desired item in a separate datastructure.
--Daniel