ainielse / get_ig_data

MIT License
7 stars 0 forks source link

IG Region Static ID - Not able to pass Dynamic page item #3

Open coolfarish opened 1 year ago

coolfarish commented 1 year ago

Hi Team,

In the help text of IG Region Static ID, I can see below:

Additional Information Type: Text Supported Substitutions: Application, Page Items and System Variables

But Substitution strings are not working, there are many IG grids in my page and I have PAGE_ITEM containing the static id of the IG grid whose data I need to get. tried passing &PAGE_ITEM. as well as #PAGE_ITEM# - both are not working

ainielse commented 1 year ago

Good morning,

The value of the page item has to be set prior to the DA generation to the page. At what point are you setting the value of the page item?

Is there a sample I can view?

Thanks,

Anton

On Sun, Jul 30, 2023 at 7:39 AM coolfarish @.***> wrote:

Hi Team,

In the help text of IG Region Static ID, I can see below:

Additional Information Type: Text Supported Substitutions: Application, Page Items and System Variables

But Substitution strings are not working, there are many IG grids in my page and I have PAGE_ITEM containing the static id of the IG grid whose data I need to get. tried passing &PAGE_ITEM. as well as #PAGE_ITEM# - both are not working

— Reply to this email directly, view it on GitHub https://github.com/ainielse/get_ig_data/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIYKBDLIJWHOFVO2FJ7J7D3XSZBXZANCNFSM6AAAAAA25EKFHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Anton Nielsen 617-510-6738

coolfarish commented 1 year ago

Ok understood. The value am setting before calling GET_IG_DATA. There are many interactive grids and each row am having button to set some value over JS along with the STATIC_ID of grid from which I have clicked the button. Upon that page item value change(it will have the static id of the latest user click), am triggering GET_IG_DATA DA to get the STATIC_ID of the grid from which the user clicked and process that grid's data.

As am changing the value over JS and the value is not before the page is rendered its not working i guess.

Any option to make it work like passing value from the browser text field/hidden item because that is where am setting the STATIC_ID dynamically on row level button click(through Javascript) ?

coolfarish commented 1 year ago

Flow is like beloe: There are multiple IG grids in my page in tabs. Having link column on each row Am setting two parameter through JS link column - javascript:function_name(STATIC_ID,ROW_ID) and in function am setting these two values to page item On change of page item am triggering GET_IG_DATA Here am trying to pass page item as &PG_STATIC_ID. and #PG_STATIC_ID# in attribute01 of the plugin, but both are not working i think its passing null as the values are just set over JS and not there while page is rendered.

ainielse commented 1 year ago

As it stands now, you would need to create one dynamic action per IG. I can update the plug-in to allow you to specify a page item that holds the region ID at runtime. I can't get to it for a few weeks at least, though. If you remind me then I'll get to it. If you need it sooner contact me directly.

coolfarish commented 1 year ago

As it stands now, you would need to create one dynamic action per IG. I can update the plug-in to allow you to specify a page item that holds the region ID at runtime. I can't get to it for a few weeks at least, though. If you remind me then I'll get to it. If you need it sooner contact me directly.

Thank you so much for the update. I am facing such situation. I tried adding parameter to the plugin as component Page Item ATTRIBUTE06. In plugin i can able to select the page item. But inside plugin render if i try to get value of the new attribute like below: l_new_static_id p_dynamic_action.attribute_06%type := p_dynamic_action.attribute_06;

Inside the render function the l_new_static_id is still showing as page item's name rather than page item's value.

Am new to plugin codes, so any reference would be helpful as well so that I can explore more from my side.