Salesforce

How Do I Dynamically Define the Data View Range? (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How Do I Dynamically Define the Data View Range? (Magic xpa 4.x)

Sometimes you may want to set the Range of a task dynamically. For instance, it is common to allow end users to do an “Advanced Search” at runtime.

A convenient way to do this is to use the RangeAdd() and RangeReset() functions. In this example, the user fills a set of virtuals with the From and To data. RangeAdd() is then used to set each of the ranges, and a View Refresh is raised so the new results are shown to the user.

When the Clear Search button is pressed, the RangeReset() function is called, the variables are cleared, and another View Refresh is raised.

See also

The Online and Rich Client Samples projects (program DV13 and RDV13)

Reference
Attachment 
Attachment