for example: we added a MenuItem "Custom JavaScript function" at our desired entity location and wish to call our custom function Myfunction on MenuItem click
so we need to modify the ISV.config as mentioned below:
<MenuItem JavaScript="Myfunction()">
<Titles>
<Title LCID="1033" Text="Custom JavaScript function" />
</Titles>
</MenuItem>
Now place your function in the entity onload event and expose the Myfunction function to the page level e.g. this.Myfunction = Myfunction;
function Myfunction()
{
//Place Your logic Here...
}
this.Myfunction = Myfunction;
Now when you click on the MenuItem "Custom JavaScript function" the function Myfunction will be called.
No comments:
Post a Comment