Need sample code to retieve input fill-in from telerik mobil

Posted by tawatchai on 23-Feb-2016 11:57

Hi,

I'm new to Javascript & JQuery frontend coding, but I need to have sample code for Telerik mobile frontend as below scenario.

1. How to get input from mobile screen (2 input fields).

2. How to compose call and pass parameter from input screen to PASOE backend using JSDO (invoke or fill with parameter passing back to OE appserver.).

Thanks,

Posted by egarcia on 23-Feb-2016 17:02

Hello,

I do not have a specific example but the following information may help you.

Since these are input fields, a simple way is to use jQuery val() or Kendo UI value() methods to query the value.

Examples:

   $("#field").val()

   or $("#field").data("<Kendo-UI-control>").value()

Another alternative, is to use value binding in Kendo UI.

In this case, the values from the screen are kept in sync with a model. Then you would just access the values in the model.

The mvvm demo page example shows this:

Here are some references:

   demos.telerik.com/.../index

   demos.telerik.com/.../source

   docs.telerik.com/.../value

To pass a parameter to the PASOE backend using the JSDO, for a READ operation, you could use the filter() or the query() method in the Kendo UI DataSource.

See the following thread for info on the JSON Filter Pattern which is needed to support filter:

community.progress.com/.../23201

Also check the following thread for this approach:

community.progress.com/.../79151

If you prefer to use an INVOKE operation instead of the READ operation.

Then you can create a JSDO directly and use the invoke() method to call the backend to get the result.

Notice that these records are not automatically placed in the JSDO memory.

For the invoke operations, you could take a look at the Kendo UI Pie Chart and Kendo UI Bar Chart samples at the following URL:

oemobiledemo.progress.com/.../index.html

I hope this helps.

All Replies

Posted by egarcia on 23-Feb-2016 17:02

Hello,

I do not have a specific example but the following information may help you.

Since these are input fields, a simple way is to use jQuery val() or Kendo UI value() methods to query the value.

Examples:

   $("#field").val()

   or $("#field").data("<Kendo-UI-control>").value()

Another alternative, is to use value binding in Kendo UI.

In this case, the values from the screen are kept in sync with a model. Then you would just access the values in the model.

The mvvm demo page example shows this:

Here are some references:

   demos.telerik.com/.../index

   demos.telerik.com/.../source

   docs.telerik.com/.../value

To pass a parameter to the PASOE backend using the JSDO, for a READ operation, you could use the filter() or the query() method in the Kendo UI DataSource.

See the following thread for info on the JSON Filter Pattern which is needed to support filter:

community.progress.com/.../23201

Also check the following thread for this approach:

community.progress.com/.../79151

If you prefer to use an INVOKE operation instead of the READ operation.

Then you can create a JSDO directly and use the invoke() method to call the backend to get the result.

Notice that these records are not automatically placed in the JSDO memory.

For the invoke operations, you could take a look at the Kendo UI Pie Chart and Kendo UI Bar Chart samples at the following URL:

oemobiledemo.progress.com/.../index.html

I hope this helps.

This thread is closed