Jump to content

Help on JsCall, JsCode, etc...


Stemon63

Recommended Posts

On 10/15/2020 at 8:01 PM, Stemon63 said:

Where I can find Documentation on several JSCall, JsCode, JsAdd, etc...  functionality?

+1 

As the core source code of the library is closed and no deep documentation available, only the advanced members can contribute.

This is my main concern of the tool. We all delphi/pascal developers know that pascal source is easier to understand compared to other languages and it is the best documentation since it is always current.

 

Link to comment
Share on other sites

1 hour ago, Hayri ASLAN said:

If you are developing standart apps, you don't need to use this ones.

Unfortunately, this is not so.

The ExtJS- components have more properties than the corresponding VCL components.

 

Example:

  unimSelect1.JSInterface.JSConfig('multiSelect', [True]);
  unimSelect1.JSInterface.JSConfig('valueField', ['id']);
////
for .... 
unimSelect1.JSInterface.JSCode(#1'.getStore().add({id: "' + dmm.qPrmID.AsString + '", val: "' + dmm.qPrmNAME.Value + '"});');

 

Link to comment
Share on other sites

2 hours ago, Hayri ASLAN said:

We are using this procedures when we create a component and call a javascript function. If you are developing standart apps, you don't need to use this ones.

We will create an example demo application about how to use this procedures.

Hi Hayri,
We need extensively to inject code for manage custom stores, variables and for "adapt" Unigui to our needs; now not all is covered by "standard" way. So we have to Known where and when inject javascript and what function call must be used.
For example, only id and val is not enough for customize lookups... we come from Devexpress.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...