Sign Up

Hey, Dev!
Are you looking for a forum full of active developers to help you?
So if you want to:
➡️ Get answers for your development issues
➡️ Help others
➡️ Write an article
➡️ Get rewarded for your active participation
Then this place is just for you and it is 100% FREE.

Have an account? Sign In


Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

OrclQA.Com

OrclQA.Com Logo OrclQA.Com Logo
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Blog
  • New Questions
  • Tutorials
    • Oracle
    • Oracle Apex
    • Python
  • Tags
  • Users
  • Badges & Points
  • About
Home/ApexPadawan/Followers Answers
  • About
  • Questions
  • Answers
  • Best Answers
  • Posts
  • Comments
  • Followers Questions
  • Followers Answers
  • Followers Posts
  • Followers Comments
  1. Asked: April 20, 2021

    Issue in interactive grid while creating dynamic action in Oracle APEX

    Vinish

    Vinish

    • 1 Question
    • 541 Answers
    • 51 Best Answers
    • 3k Points
    View Profile
    Vinish Enlightened
    Added an answer on April 20, 2021 at 10:14 am

    If your interactive grid source is SQL query then fine else change it to SQL query and modify the query as below: Select a, b, case when a != b then 'red' else 'black' end acolor from yourTable The above SQL query will add one more column acolor, set this column as a hidden column. Then set the follRead more

    If your interactive grid source is SQL query then fine else change it to SQL query and modify the query as below:

    Select a, b, case when a != b then
                     'red'
                 else
                     'black'
                 end acolor
       from yourTable

    The above SQL query will add one more column acolor, set this column as a hidden column.

    Then set the following HTML expression property for column A:

    <span style="color: &ACOLOR.">&A.</span>

    Now on the IG load, it will take the effect.

    You can keep your dynamic action as is.

    See less
    • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  2. Asked: April 16, 2021

    Insert different entries in table depending on action of user

    Vinish

    Vinish

    • 1 Question
    • 541 Answers
    • 51 Best Answers
    • 3k Points
    View Profile
    Vinish Enlightened
    Replied to answer on April 18, 2021 at 4:29 pm

    Are you doing double click on the Submit button? You should click once. Try creating submit button as shown in the following tutorial: https://www.foxinfotech.in/2020/08/oracle-apex-dynamic-action-submit-page-example.html

    Are you doing double click on the Submit button? You should click once.

    Try creating submit button as shown in the following tutorial:

    https://www.foxinfotech.in/2020/08/oracle-apex-dynamic-action-submit-page-example.html

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  3. Asked: April 16, 2021

    Create trigger to insert column depending on value of other column from the same table

    Vinish

    Vinish

    • 1 Question
    • 541 Answers
    • 51 Best Answers
    • 3k Points
    View Profile
    Vinish Enlightened
    Replied to answer on April 18, 2021 at 11:39 am

    Replace the keyword ELSEIF with ELSIF. In PL/SQL it is written as ELSIF.

    Replace the keyword ELSEIF with ELSIF. In PL/SQL it is written as ELSIF.

    See less
    • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  4. Asked: April 16, 2021

    Insert different entries in table depending on action of user

    Vinish

    Vinish

    • 1 Question
    • 541 Answers
    • 51 Best Answers
    • 3k Points
    View Profile
    Vinish Enlightened
    Replied to answer on April 18, 2021 at 11:37 am

    You can make the process to run on click of the specific button. You will find the setting in process properties > server-side condition > when button pressed. Also, you can modify the function to run first update and if update fails then insert. Below is an example: Create or Replace FunctionRead more

    You can make the process to run on click of the specific button. You will find the setting in process properties > server-side condition > when button pressed.

    Also, you can modify the function to run first update and if update fails then insert. Below is an example:

    Create or Replace Function insert_acc_den (p_value in varchar2,
       p_key_value in varchar2)
    return boolean
    is
    begin
    update your_table
       set your_column = p_value
    where key_column = p_key_value;
    
    if sql%rowcount = 0 then
      -- update fails
      insert into your_table (your_column) values (p_value);
    end if;
    return true;
    exception
    when others then
    return false;
    end;

     

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  5. Asked: April 16, 2021

    Create trigger to insert column depending on value of other column from the same table

    Vinish

    Vinish

    • 1 Question
    • 541 Answers
    • 51 Best Answers
    • 3k Points
    View Profile
    Best Answer
    Vinish Enlightened
    Added an answer on April 17, 2021 at 10:22 am

    The trigger would be fine. You are missing the semicolon. Below is the corrected code: create or replace TRIGGER INSERT_COLUMN2_TABLE1 BEFORE INSERT OR UPDATE ON TABLE1 FOR EACH ROW begin -- IF :NEW.COLUMN ='REQUESTED' THEN :NEW.COLUMN2 := 'REQUEST_PENDING'; ELSIF :NEW.COLUMN ='NOT_REQUESTED' THEN :Read more

    The trigger would be fine. You are missing the semicolon. Below is the corrected code:

    create or replace TRIGGER INSERT_COLUMN2_TABLE1
    BEFORE INSERT OR UPDATE ON TABLE1
    FOR EACH ROW
    begin
    --
    IF :NEW.COLUMN ='REQUESTED' THEN
    :NEW.COLUMN2 := 'REQUEST_PENDING';
    
    ELSIF :NEW.COLUMN ='NOT_REQUESTED' THEN
    
    :NEW.COLUMN2:='TEXT123';
    END IF;
    
    END;
    See less
    • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  6. Asked: April 16, 2021

    Insert different entries in table depending on action of user

    Vinish

    Vinish

    • 1 Question
    • 541 Answers
    • 51 Best Answers
    • 3k Points
    View Profile
    Vinish Enlightened
    Replied to answer on April 17, 2021 at 10:13 am

    Correct, I missed it 😀

    Correct, I missed it 😀

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  7. Asked: April 16, 2021

    Insert different entries in table depending on action of user

    Vinish

    Vinish

    • 1 Question
    • 541 Answers
    • 51 Best Answers
    • 3k Points
    View Profile
    Vinish Enlightened
    Added an answer on April 16, 2021 at 5:21 pm

    Your approach is fine. But you can use the single function for both the buttons. You can pass the parameter to the function. Below is an example: Create or Replace Function insert_acc_den (p_value in varchar2) return boolean is begin insert into your_table (your_column) values (p_value); return trueRead more

    Your approach is fine. But you can use the single function for both the buttons. You can pass the parameter to the function. Below is an example:

    Create or Replace Function insert_acc_den (p_value in varchar2)
    return boolean
    is
    begin
       insert into your_table (your_column) values (p_value);
        return true;
    exception
      when others then
        return false;
    end;

    You can now create two processes in Apex, each one will be executed on a particular button (accepted/denied). Below is the process code example:

    Begin
       insert_acc_den('ACCEPTED');
    End;
    See less
    • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  8. Asked: April 14, 2021

    How to set application item for session user?

    Vinish

    Vinish

    • 1 Question
    • 541 Answers
    • 51 Best Answers
    • 3k Points
    View Profile
    Vinish Enlightened
    Replied to answer on April 15, 2021 at 7:44 am

    The issue seems in your if condition. You are comparing as: if v_state = v_state which is wrong. I think, it should be: if v_state = v_stored_state Also, after end if; return the v_page. Following is the complete code: declare v_state varchar2(50); v_stored_state varchar2(50); v_page number; begin vRead more

    The issue seems in your if condition. You are comparing as:

    if v_state = v_state

    which is wrong.

    I think, it should be:

    if v_state = v_stored_state

    Also, after end if; return the v_page. Following is the complete code:

    declare
    v_state varchar2(50);
    v_stored_state varchar2(50);
    v_page number;
    
    begin
    v_state:= V('STATE_OF_FORM');
    select fp.STATE, fp.PAGE into v_stored_state, v_page from PROCESSSTEPS_FORM fp where fp.AUDIT_USER=:APP_USER;
    
    IF nvl(v_state, 'x') = nvl(v_stored_state, 'y')
    THEN
    SELECT APEX_PAGE.GET_URL (
    p_page => v_page)
    INTO v_page;
    
    FROM DUAL;
    end if;
    return v_page;
    end;
    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  9. Asked: September 9, 2020

    Interactive Report dynamic multiple page link in Oracle Apex

    Vinish

    Vinish

    • 1 Question
    • 541 Answers
    • 51 Best Answers
    • 3k Points
    View Profile
    Vinish Enlightened
    Added an answer on April 14, 2021 at 2:18 pm

    Follow the same steps but instead of #LINK_COLUMN# use &LINK_COLUMN. .

    Follow the same steps but instead of #LINK_COLUMN# use &LINK_COLUMN. .

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  10. Asked: April 14, 2021

    How to set application item for session user?

    Vinish

    Vinish

    • 1 Question
    • 541 Answers
    • 51 Best Answers
    • 3k Points
    View Profile
    Vinish Enlightened
    Added an answer on April 14, 2021 at 2:17 pm

    The code seems to be correct. At what point you are calling this process?  

    The code seems to be correct.

    At what point you are calling this process?

     

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
1 2 3 … 55

Sidebar

Ask Question
Write a Post

Recent Blog Posts

  • Vinish

    Oracle Apex - Display External File in Region

  • Vinish

    Oracle PL/SQL Download BLOB File to Disk

  • Vinish

    Oracle Convert External File to BLOB

  • Vinish

    Oracle Apex Calendar Example

  • Vinish

    Oracle Apex - Open Modal Dialog Page Using JavaScript

Explore

  • Home
  • Blog
  • New Questions
  • Tutorials
    • Oracle
    • Oracle Apex
    • Python
  • Tags
  • Users
  • Badges & Points
  • About

© 2021 OrclQA.Com. All Rights Reserved. Privacy Policy