Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coolfarish opened this issue Jul 30, 2023 · 5 comments
Open

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

coolfarish opened this issue Jul 30, 2023 · 5 comments

Comments

@coolfarish
Copy link

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
Copy link
Owner

ainielse commented Jul 30, 2023 via email

@coolfarish
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants