Dear

How can I get the id from (toolbar plugin) when menu entry clicked using dynamic action ?

thanks

asked 30 Aug, 02:31

mosab's gravatar image

mosab
611
accept rate: 0%


You can access the ID of the current clicked item in a dynamic action that listens to the following events "FOEX Toolbar - Menu Item Click" or "FOEX Toolbar - Split Button Click"

e.g.

this.data.item.getId()

From the FOEX reference documentation:

alt text

Sencha Documentation: http://docs.sencha.com/extjs/6.2.1/classic/Ext.menu.Item.html#method-getId

link

answered 30 Aug, 03:47

FOEX-SUPPORT's gravatar image

FOEX-SUPPORT
4.4k15
accept rate: 32%

sorry sir but i want the id that is in the select statement that build the toolbar or how to get the url ??

(30 Aug, 04:22) mosab mosab's gravatar image

Yes this should return that ID, since the ID from your toolbar SQL query is used for each menu item.

Or are you looking for a different ID i.e. the ID of the Toolbar region itself?

(30 Aug, 06:43) FOEX-SUPPORT FOEX-SUPPORT's gravatar image
**this is the select statement**

----------

----------

SELECT 
DID                      AS ID

     , DPID                     AS PID
     ,decode(nvl(:APP_LANG,'ar'),'ar',dtext,detext)                     AS TEXT
     , DURL||':&APP_SESSION.::&DEBUG.:'||dms.get_appid(DURL,'P')||':'||'P'||dms.get_appid(DURL,'P')||'_SESSIONID'||':'||'#P1_SESSIONIDOUT#'                     AS URL
     , DDISPLAY_SEQ             AS DISPLAY_SEQ
     , DCSS_CLASS                    AS CSS_CLASS
     , DINFO                    AS INFO
     ,null                      AS CUSTOM
     ,null                      as hide_button_label
    , null                      as  widget_id
    , null                      as group_id FROM dms_menu A

----------

----------

I want this select ID first column  this method you give it to me return different  id
link

answered 30 Aug, 07:10

Mudhaffer%20AlJabery's gravatar image

Mudhaffer Al...
1
accept rate: 0%

What are the ID values?

(30 Aug, 08:37) FOEX-SUPPORT FOEX-SUPPORT's gravatar image

it is like '01' , '02' but the method u give it to me return like this (menuitem-3060) something like this

(01 Sep, 13:07) Mudhaffer Al... Mudhaffer%20AlJabery's gravatar image

my case that i want to know what menu item clicked by the user but i want that id in my select statement but not the id that generate by plugin because i want to record witch page that loaded by the user at time

(01 Sep, 13:10) Mudhaffer Al... Mudhaffer%20AlJabery's gravatar image

assume that i want to get the url from that select how could i do that

(01 Sep, 13:10) Mudhaffer Al... Mudhaffer%20AlJabery's gravatar image

We recommend that you create a test case so we can see your setup and advise your correctly, since the advice we have given should return the ID from the query.

Alternatively you can debug the dynamic action and check the values of the "this.data" object e.g.

(function(){debugger;}).call(this))

alt text

and check the values interactively e.g.

alt text

link

answered 04 Sep, 02:53

FOEX-SUPPORT's gravatar image

FOEX-SUPPORT
4.4k15
accept rate: 32%

Dear

The following is the returned from my select statement , and I need to get the id that colored on Yalow

alt text

But then function u give to me return this value

alt text

link

answered 05 Sep, 01:46

mosab's gravatar image

mosab
611
accept rate: 0%

What does this return?

this.data.item.itemId

(05 Sep, 04:42) FOEX-SUPPORT FOEX-SUPPORT's gravatar image

And please inspect the object to check the values:

this.data.item

(05 Sep, 04:51) FOEX-SUPPORT FOEX-SUPPORT's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×15

Asked: 30 Aug, 02:31

Seen: 113 times

Last updated: 05 Sep, 04:51

FOEX Links