zilav Posted February 1, 2021 Share Posted February 1, 2021 Hello everybody, Need help How get column value from UnidbPivotGrid via exevent rowselect or cellselect? when mouse select row or cell I need read value of cell or column via ajaxevent 1 Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 1, 2021 Share Posted February 1, 2021 44 minutes ago, zilav said: Hello everybody, Need help How get column value from UnidbPivotGrid via exevent rowselect or cellselect? when mouse select row or cell I need read value of cell or column via ajaxevent Hello You can use "select" event. With UniDBPivotGrid1, JSInterface do begin JSAddListener('select', JSFunction('this,selected', 'console.log("this",this);console.log("selected",selected);')) end; 1 Quote Link to comment Share on other sites More sharing options...
zilav Posted February 2, 2021 Author Share Posted February 2, 2021 20 hours ago, Hayri ASLAN said: Hello You can use "select" event. With UniDBPivotGrid1, JSInterface do begin JSAddListener('select', JSFunction('this,selected', 'console.log("this",this);console.log("selected",selected);')) end; This method doesn't work .. Can you show the sample more detail how get from ajaxrequest.. I have PivotGrid LeftAxis FIELD1,FIELD2,FIELD3,FIELD4 I need when rowselect or cellselect get value from FIELD1 1 Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 2, 2021 Share Posted February 2, 2021 2 hours ago, zilav said: This method doesn't work .. Can you show the sample more detail how get from ajaxrequest.. I have PivotGrid LeftAxis FIELD1,FIELD2,FIELD3,FIELD4 I need when rowselect or cellselect get value from FIELD1 When you select a cell you will get below values. Which one do you need? 1 Quote Link to comment Share on other sites More sharing options...
zilav Posted February 3, 2021 Author Share Posted February 3, 2021 Hi, I need for sample c1 and ext-36 wich you marking values how getit and send ajaxrequest with this values? UnidbPivotgrid from ajaxevent if eventame = 'blabla' var1:= value1 var2:= value2 Thank's advance 1 Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 3, 2021 Share Posted February 3, 2021 10 hours ago, zilav said: Hi, I need for sample c1 and ext-36 wich you marking values how getit and send ajaxrequest with this values? UnidbPivotgrid from ajaxevent if eventame = 'blabla' var1:= value1 var2:= value2 Thank's advance Hello, eventname is onSelect. With UniDBPivotGrid1, JSInterface do begin JSAddListener('select', JSFunction('a,b', 'ajaxRequest('#1', "onSelect", b.data); ')) end; 1 Quote Link to comment Share on other sites More sharing options...
zilav Posted February 4, 2021 Author Share Posted February 4, 2021 working code procedure TMainForm.UniDBPivotGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName='onSelect' then ShowMessage(Params.Values['bdata']); end; procedure TMainForm.UniFormShow(Sender: TObject); begin {With UniDBPivotGrid1, JSInterface do begin JSAddListener('select', JSFunction('selected', 'console.log("this",this);console.log("selected",selected);')) end;} With UniDBPivotGrid1, JSInterface do begin JSAddListener('select', JSFunction('a,b', 'ajaxRequest('#1', "onSelect", ["bdata="+b.data["ext-35"]]);')) end; end; 1 Quote Link to comment Share on other sites More sharing options...
ReaderF Posted February 4, 2021 Share Posted February 4, 2021 @zilav , @Hayri ASLAN Good evening. Can I implement this event? Can you help for double clicking? I found this event from sencha doc "pivotitemdoubletap" but I don't know how use it like your sample with ajaxevent This code doesn't work for me With UniDBPivotGrid1, JSInterface do begin JSAddListener('pivotitemcelldoubletap', JSFunction('a,b', 'ajaxRequest('#1', "onSelect", ["bdata="+b.data["ext-35"]]);')) end; Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 4, 2021 Share Posted February 4, 2021 1 minute ago, ReaderF said: @zilav , @Hayri ASLAN Good evening. Can I implement this event? Can you help for double clicking? I found this event from sencha doc "pivotitemdoubletap" but I don't know how use it like your sample with ajaxevent This code doesn't work for me With UniDBPivotGrid1, JSInterface do begin JSAddListener('pivotitemcelldoubletap', JSFunction('a,b', 'ajaxRequest('#1', "onSelect", ["bdata="+b.data["ext-35"]]);')) end; Hello Which build and version are you using? Quote Link to comment Share on other sites More sharing options...
ReaderF Posted February 4, 2021 Share Posted February 4, 2021 Just now, Hayri ASLAN said: Hello Which build and version are you using? DoubleFacePalm Do you get tired of giving this question every time? 1534 version Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 4, 2021 Share Posted February 4, 2021 Just now, ReaderF said: DoubleFacePalm Do you get tired of giving this question every time? 1534 version Hi If you are using licensed version, you need to update your email address. Then, we will not ask anymore. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 4, 2021 Administrators Share Posted February 4, 2021 4 minutes ago, ReaderF said: DoubleFacePalm Do you get tired of giving this question every time? 1534 version Maybe because you hesitate to answer the question we have to ask again and again! Quote Link to comment Share on other sites More sharing options...
ReaderF Posted February 4, 2021 Share Posted February 4, 2021 Just now, Hayri ASLAN said: Hi If you are using licensed version, you need to update your email address. Then, we will not ask anymore. Ok imagine I'm using the trial version )) Can you help me? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 4, 2021 Administrators Share Posted February 4, 2021 4 minutes ago, ReaderF said: Ok imagine I'm using the trial version )) Can you help me? Imagine that you are banned from the forums. It is your 3rd account which will be banned. This time your IPs will be banned too. Bye Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.