+1.604.763.2828 Vancover, Canada | +1.206.923.9676 Seattle, USA | +44.020.3239.8686 London, UK | +86.1358.161.6375 Beijing, China   
Home  info@primeobjects.com   
Products & Features Consulting Partners Blog and Communitiy About Us
Products & Features Consulting Partners Blog & Community About Us Sign up, 14 days free Login >>

Developer Updates
We're software engineers who love building great software!

Wednesday, January 27, 2010

Pass OnLoadJS in the parameter of the form

Source: Developer Updates
Tags: 

The OnLoadJS field on the EntityUI record allows us to define the customized OnLoad javascripts to a form. However in some senarios, we may want to pass the OnLoad javascript in the parameter of the form url to make the form behave differently based on different OnLoadJS values in the parameter. For example, when rendering a new Task form for collection the feedback or issues submitted from customer, we want to simplify the Task form by only showing the subject and content. To achieve this, we passed OnLoadJS=OnlyShowContent() in the parameter of the query string so the form will call OnlyShowContent after loaded and hide all unwanted form fields. The whole url will look like this http://www.primeobjects.com/form.aspx?ename=Task&OnLoadJS=OnlyShowContent().

Note: The OnlyShowContent function need to be defined in a javascript file used by the Task entity.

posted by System Administrator @ 03:13:36 PM   0 Comments
Email the article to a friend
Add comment to the article.
Subscribe to Current Posts [RSS Feed]
Subscribe to Latest Posts [RSS Feed]



Favorite Links

    © Copyright 2009 PrimeObjects.com. All Rights Reserved. | Security Statement | Privacy Statement