Home 1.604.763.2828 Vancover, Canada
PrimeObjects Products & Features Consulting Partners Blog and Communitiy About Us
Intelligent Business Knowledge Management Products & Features Consulting Partners Blog & Community About Us Sign up, 7 days free Login >>
PrimeObjects Latest Improvements

Tuesday, January 26, 2010

Pass OnLoadJS in the parameter of the form

Source: PrimeObjects Latest Improvements
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 @ 11:12:34 PM   0 Comments

0 Comments:

Subscribe
Current Posts [RSS Feed]
Latest Posts [RSS Feed]
Categories
Tags
Favorite Links
Copyright © 2011 PrimeObjects Software Ltd. All rights reserved.
Project Knowledge Management
Product Knowledge Management
Customer Knowledge Management
PrimeObjects Platform
Business Updates
Latest Improvements
Developer Updates
Mobile App Development