+1.604.807.7068 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

PrimeObjects is an advanced web-based business operation system. It works like a web based Windows 7 and provides all fundamental platform features needed by any web based enterprise applications such web based desktop, web based form, web based list, web based file explorer, enterprise level security, content management, document management, record management, workflow and many more. Built on comprehensive enterprise web application platform, PrimeObjects CRM, e-commerce, web 2.0 and other business solutions maintain consistent user experience and highest level of information integration. The all-in-one solution sharing the common data structure and common user interface promises the best information management practices.


Subscribe to Current Posts [RSS Feed]
Subscribe to Latest Posts [RSS Feed]

Bookmark and Share

Tuesday, January 26, 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 @ 11:13:36 PM   0 Comments
Email the article to a friend
Add comment to the article.


Favorite Links


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