Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleHow to enable column filtering and pagination on grids displaying web service data?

To enable columns sorting and filtering, and pagination on grid apps that display data from web services, it is necessary to enable the data cache option.

Let’s assume that the ACCOUNT DETAILS classic grid app (widget), with a web service data source is already created in Canvas Studio.

  1. In App Designer, click the View Config tab and then proceed to select the Caching option.
    1. Click the Enable Data Cache toggle and select the App Instance option in Caching Scope.  



  2. To apply data filters, click the Filtericon. 
    1. To configure the column properties of ACCOUNT_ID, click Configure.
    2. In View Column Configuration, click the Sort & Filter option. 



  3. In Sort & Filter, configure the parameters, as shown in the following screen shot:



  4. Proceed to save the app. 

    Let’s assume that the ACCOUNT DETAILS app is mapped to the ACCOUNT SUMMARY workspace. The data of the ACCOUNT DETAILS app, fetched from the web service is displayed in the functional application, Modelhouse:

  5. Click the Filtericon on the right side of the app, select the Account_ID column and click Contains



  6. In the Account_ID contains search box, enter the appropriate value and press Enter


    The data matching the search criteria provided for ACCOUNT_ID column appear in the grid.    


Cookies

To disable the SameSite attribute in the hybrid and mobile apps built using Canvas Technology, perform the following steps: 

Ensure that the Set-Cookie header element doesn't have the SameSite attribute. In case, if the SameSite attribute is present
Expand
titleHow to disable the SameSite attribute in Hybrid and Mobile Apps?
Why do the Hybrid Mobile Apps don't send the cookies to the server?

By default, in the HTTP response header, the SameSite attribute in the Set-Cookie header element

, make sure that you remove the SameSite attribute. For example, if

prevents the cookies from being sent to the server in the hybrid mobile apps. For instance, if the SameSite attribute has been specified as "SameSite=Strict", ensure that you nullify the SameSite attribute with "None", for instance, "SameSite=None", thereby removing the SameSite attribute from the Set-Cookie header element in the HTTP response

Note

The

SameSite=Strict attribute prevents the WebView instance from sending the cookies to the server. Both Hybrid and Native mobile apps

Hybrid Mobile Apps get loaded as ad hoc units in the WebView instances and therefore it is essential that the SameSite attribute should be removed or nullified in the Set-Cookie header element in the HTTP response