Jump to content

Recommended Posts

Posted

Hello,

7 hours ago, aurelioset said:

how to make unigui send status to vcl

Please explain more.

And, can you please specify, which edition and build of UniGUI are you using?

Posted
2 hours ago, aurelioset said:

I'm using version 1.90.0.1530,

If you are not using the trial version please adjust your forum email address first:

 

2 hours ago, aurelioset said:

I need to receive a result in the VCL application

Sorry, not enough information.

Posted

http://forums.unigui.com/index.php?/topic/9892-unimdblistgrid-button-onclick/&do=findComment&comment=78441

in UniEvent

function afterCreate(sender) {
   Ext.getCmp(sender.id).bodyElement.addListener('click', function(event, target) {
        if (target.getAttribute('class').includes('btnPopup')) {
            ajaxRequest(sender, "eventPopup", ['objId=' + target.getAttribute('data-id'),
											   'typeId=' + target.getAttribute('type-id')]);
			//console.log('typeId=' + target.getAttribute('type-id'));
        }
    }, null, {
        delegate: 'table button'
    });
}

 

in Event OnAjaxEvent

if EventName = 'eventPopup' then 
  begin
    objId   := StrToIntDef(Params.Values['objId'], 0);// files/fmmSearchResults.dbgRes.afterCreate.js
    id_type := StrToIntDef(Params.Values['typeId'], 0);
...

 

 

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...