0

I have variable in local procedure that rendering data to pop-up window I'm using oracle apex 20.2 Oracle Database 18 c

Variable name :l_factor_count as shown in image here

I want to pass this variable value to be used in Javascript function inside this procedure  If I put static value it's works fine but if I use the procedure variable it won't work!

After I did some research I found that this variable is local and needs to be related with page item but I don't know how do that because I use the procedure to do all the work and rendering data in pop-up as I said before.

2
  • Is the code in the two images part of the same procedure? Or is it part of the same package but different procedures? Commented Feb 25, 2021 at 10:35
  • yes both in the same procedure. Commented Feb 25, 2021 at 12:43

1 Answer 1

1

There are 2 ways of doing what you want

Divide you code in 2 parts.

1º Execute the PL/SQL required sending the values e returning them accordingly. Submitting this values in a dynamic action is APEX 101, so you should be fine here.

2º Execute a second action with the JavaScript code grabbing these values.

Execute an Ajax Call

Use apex.server.process to call you PL/SQL function and make it return your values to continue the process.


I do not advise you to my JavaScript and PL and if possible try to avoid it.

If you don't know how to do the steps from either item, then you might be doing stuff that, at the moment, is to advanced for you. So please check out some tutorials, anything online is going to help a lot.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.