More than one Page objects of value with dynamic action parameter

Hello

How to set the values of the two elements of the page based on another page, article in dynamic action IE

-variable value tr_type is set using the function get_type

-passing the p1_code parameter

TR_TYPE; = GET_TYPE (P1_CODE);

If TR_TYPE = "DR" THEN

P1_DR: = P1_AMT;

ON THE OTHER

P1_CR: = P1_AMT;

END IF;

-If I write the function get_type with Exp of PL/SQL of TYPE 'SET', it triggers the error on the use of the service.

-If I put body of the PL/SQL TYPE of function 'SET', the page displays error unhandled expception.

How can I achieve this using dynamic action.

Hi, IK,.

Can you please quote the u of changes/amendments made to the code, I am unable to find it.

Included missing: for element names.

--value variable tr_type is set using function get_type
--passing p1_code parameter
TR_TYPE:=GET_TYPE(:P1_CODE); 

if TR_TYPE='DR' THEN
:P1_DR:=:P1_AMT;
ELSE
:P1_CR:=:P1_AMT;
END IF;  

Here is my scenario with code.

I have a form with 4 elements (account (P1_CODE), quantity (P1_AMT), DR (P1_DR, hidden), CR (P1_CR, hidden), I am writing a dynamic action on P1_AMT (change) of the code)

DECLARE

TR_TYPE char (2);

BEGIN

-calling a function "GET_TYPE.

-passing the P1_CODE parameter

TR_TYPE; = GET_TYPE (P1_CODE);

If TR_TYPE = "DR" THEN

P1_DR: = P1_AMT;

ON THE OTHER

P1_CR: = P1_AMT;

end if;

end;

Again, we know not not how you want to call a dynamic action,.

assuming that on the evolution of the account (P1_CODE), the function call GET_TYPE(:P1_CODE) to retrieve the type of transaction,

on the basis of the transaction that you want to set the amount of specific element.

on the change of point P1_code

Action: execute the PL/SQL code

Parameters

DECLARE
TR_TYPE  char(2);
BEGIN
--calling a function "GET_TYPE"
--passing parameter P1_CODE
TR_TYPE := GET_TYPE(:P1_CODE);
if TR_TYPE='DR' THEN
:P1_DR:=:P1_AMT;
ELSE
:P1_CR:=:P1_AMT;
end if;
end;

page elements to present - P1_CODE, P1_AMT

page items to return - P1_DR, P1_CR

Check the screenshot

There are other ways to set the values using dynamic action, try the above

Kind regards

Jitendra

Tags: Database

Similar Questions

  • I replaced a HP with an Epson Stylus all-in-one printer and cannot get the printer to print more than one page when printing from the computer.

    Original title: new printer

    I replaced a HP with an Epson Stylus all-in-one printer and cannot get the printer to print more than one page when printing from the computer.  The printer works fine when printing from a laptop or ipad!

    Start by going here--> http://www.epson.com/cgi-bin/Store/support/supDetail.jsp?UseCookie=yes&oid=232591&prodoid=63099059&infoType=Downloads&platform=nodetect

    If the web page has not correctly detected your operating system, select it by using the drop-down list.  Rather than using the "Combo package" recommended but huge, expand the "Drivers" section and download driver printer v2.32 to a location that you will remember later.

    • Click on the ORB start and go into devices and printers.
    • Select (click) the icon of your Epson printer.
    • Once you have selected the printer, a button labeled "Print server properties" will appear in the toolbar.  Click on this button.
    • Click the "Drivers" tab on the print server properties dialog box.
    • Select the Epson printer in the list of installed printer drivers, and then click 'remove '.
    • In the context menu, select "Remove driver and driver package" and click OK
    • Click Yes, and then delete
    • Once the removal process is complete, restart the computer (probably not really necessary, but can't hurt)
    • Install the driver and the software using the file that you downloaded earlier

    At this point, your printer should work fine.  However, if you want the ability to print by emailing a file to your printer, you may need to install both 'Remote Printer Driver v1.65' in the category 'Pilot' and "v1.30 utility Configuration of printer Epson Connect" in the "Utilities" category

  • Header record not repeated when the detail records extend to more than one page

    Model RTF,

    1. I have one for each code of

    <? for-each@section:G_HEADER? >

    2. under "for-each", I have the header of the document is set in a row of the 1 table.

    The row for this table property is set to 'Repeat as header at the top of every page'

    3 in this, I have another table with the fields for data LINES with its own code "for-each" <? for each: G_LINES? >

    4. follow-up of the end for the two above "for-each".

    However, when I generate the PDF output in overview, data lines extend to more than one page, the header record is not repeated on the following pages. Anyone has any ideas of how to solve this

    My version of the XML Editor is 10.1.3.4.1 build 130. I have an example of data and model, but don't know if I can download it here.

    Use this logic


    INFORMATION HEADER TABLE

    DETAIL TABLE

    and keep this in the header then it is displayed even though the detail data go to more than 1 page.

    If this helps please give me a few points

  • Why can't hit the goback button and back more than one page

    Upgrade from 6.3 to firefox 8. When I use the back button I can't go back more than one page. I use to be able to go back as many pages as I wanted to. Use win xp sp3 fully implemented to date, 1 GB memory pentium 4.

    Thanks for your answer to my question. I use Noia for my theme and like how the buttons next and previous are willing. I found the solution for my problem the about: config > browser.sessionhistory.max_entries is set to 2. I changed it to 50, and problem solved. Thanks for your help.

  • I have Firefox 7.0.1 and want to move forward and back more than one page at a time-how to fix this?

    I used to have 6 of Firefox that allow me to advance or go back more than one page

    You can also hold down the left button of the mouse on the active back or forward button until the list opens.

  • How to create an iBOT that contains more than one page of dashboard

    Hello
    I want to create an iBOT that delivers content to HTML or PDF, but to contain more than one page of dashboard. The idea is that I have several dashboards and I want to send by email most important pages (by iBOT) of various dashboards.
    Is it possible to send by a unique electronic pages of different dashboards? I can't find a way to achieve this in the content of the iBOT delivery.

    Thank you.

    Have a search for 'Books of information' - they should satisfy your requirement.

    Paul

  • How to use more than one page to design a report of similar form?

    Hello
    I'm designing a report of similar shape. and expand the extensible framework to contain the entire page or window like this page:
    Image:! http://up1.m5zn.com/photo/2008/12/21/07/e728mos12.jpg/jpg!

    Now, there is no space in the window to complete the design of the report.
    How the extensible framework to contain more than one page or a single window to complete the design of the report?

    Replace the panels vertical by Page 2 (or more if necessary) for the main page layout model.

  • DOE to Laser Epson c1100 printer does not print double side or more than one page

    Original title: windows 7 64-bit

    Hello

    Someone help please? I have an epson c1100 laser printer... .works fine with xp but now with win7. The best I can get is the driver by default that automatically loads if I understand correctly that there is no specific driver for this machine available in win 7. Prints a sheet ok, don't double side or on several pages. Has anyone found a way around that?  Otherwise, I have another pc using vista, I could link so when I print the win7 machine it transfers data on the other pc and print it! Seems a long way round but I really need my laser works as it is a great machine. Epson does not offer help, unfortunately

    Hello

    To help you to propose measures to solve the problem, I would appreciate if you could answer the following questions:

    1. you receive an error message or error code?

    2 did you do changes on the computer before the show?

    Follow the suggestions below for a possible solution:

    Method 1: I suggest to run the printer Troubleshooter and check if the problem persists.

     

    Open the printer Troubleshooter

    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    You can also see the following article for more information:

    Printer in Windows problems

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Method 2: You can search the print settings and make sure you are able to print double sided and more than a page.

    Choose printing options

    http://Windows.Microsoft.com/en-us/Windows7/choosing-print-options

    It will be useful. If you have any other questions, feel free to let us know. We will be happy to help you.

  • Can I use more than one html5/js animation produced with Flash/createjs in a Web site?

    Hi, I produce animations with Flash which will be delivered in createjs html5/js hollow. The problem is that after including the first animation in my html Web site, the rest of the animations are crushed with the first, that is why, if I attempt to insert a second animation in my site, in fact, it will replace the first animation, I had already placed...

    I already tried the following:

    -change the default canvasID to another

    -Change the resources and namespaces Javascript in Createjs export settings

    -manually change the name of the functions (lib, img, syc) in the Javacript file

    None of them seem to solve the problem. So I'm now wondering if it is actually possible to insert more than one animation in a Web site...

    I would appreciate a quick response because I am working on a project with a very tight schedule and really need to address this question right.

    Thank you very much in advance for the help.

    Then, you have made a mistake.

    Start with the two different FLAS.  one with a red rectangle on the stage and the other with a blue onstage rectangle and nothing else.  publish your html and js files.

    combine the two into one and, if you have a problem, the postcode of your a single html file and two js files.

  • Help!... PRINTER LEXMARK ALL-IN-ONE X 5650 WILL NOT PRINT MORE THAN ONE PAGE... Help! (READY TO BURN THIS * @# % ^ THING)

    THIS IS MY PROBLEM... IM RUNNING WINDOWS 7, I AM ABLE TO CONNECT THE PRINTER TO THE COMPUTER WITHOUT PROBLEM. IF I TRY TO PRINT OR COPY ONLY ONE PAGE AT A TIME MOER THE PRINTER WILL RESTART AFTER THE FIRST PAGE HAS FINISHED PRINTING. I ALSO NOTICED THAT THE PRINTER DOESN'T IS NOT DISPLAY INK CORRECT LEVEL ON THE SCREEN OF THE PRINTER, (BLACK INK INK DIRECT 0% 0%) BUT IF I CHECK THE LEVEL THROUGH THE PREFERENCES OF COMPUTER PRINTER IT SHOWS THAT THE BLACK INK IS USED MORE OF THE COLOR INK. (BLACK INK INK 75%-100%). THE QULITY IMPRESSION IS POOR TO MUCH GREEN... ALSO WHEN I CANCEL THE JOB IN THE MIDDEL OF A PRINT JOB IT ALSO RESTARTS. I LAUNCHED A PRINT OF THE COMPUTER TEST PAGE AND IT PRINTS OUT THERE BUT WHEN ITS DONE WITH THE FIRST IMPRESSION AGIN RESTART ANOTHER. AND THE SAME FOR ALL "CARTRIDGES CLEAN CARTRIDGES-ALINGN" THE ONLY THING THAT WORKS WELL IS THE SCANNER... WHEN I PRINT A TEST PAGE TO THE PRINTER, I SEE A MESSAGE 'BAD CHIP HEATING' CAN THIS BE THE CAUSE OF ALL MY PROBLEMS, OTHERWISE THAT MEANS...

    HELP.............................. HELP.................................... HELP.......................

    ......................................... WHERES MY GAS AND A LIGHTER...

    Hi MTCAIME,

    ·         If it works well before? Do you remember any recent software and hardware changes made on your computer?

    1. I even suggest to run the troubleshooter under construction, link, you can refer to the same thing: Open the printer Troubleshooter: http://windows.microsoft.com/en-us/windows7/Open-the-Printer-troubleshooter

    2. make sure that the printer spooler is set to automatic, steps to set the service to automatic

    i. click on start and type services.msc in the search box

    II. search for the Printer Spooler service

    III. right-click on the service

    IV. If the service is stopped and then starts the service

    v. Select Properties

    VI. and in startup type, select automatic

    3 uninstall the driver and related software and reinstall it back. To uninstall, see the link below: Uninstall or change a program: http://windows.microsoft.com/en-US/windows7/Uninstall-or-change-a-program

    Link for the drivers from the Lexmark Web site: http://support.lexmark.com/index?locale=en&productCode=LEXMARK_X5650&userlocale=EN_US&segment=DOWNLOAD&os=WINDOWS_7&page=downloadsList&oslocale=en_US#4

    Thank you, and in what concerns:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Why can't my 6500 has more scan/file more than one page at a time?

    Why can't my 6500 has more scan several pages at a time?  I tried to scan a three page article.  Each page must be analysed individually and saved as an individual file.  Very frustrationg.  And, of course, there is no manual to follow or refer to.  Thanks to someone out there who might know the answer.  Happy days of the Turkey.

    Hello

    Please see the link below for how to scan multiple pages one.

    http://support.HP.com/us-en/document/c00018775

  • How can I get rid of the coding that adds more than one page to print email?

    I now get more than just the sender, date, and issue information in emails. What information from "source"? Is it possible that I can print the email without printing the part "source"? I tried to copy what I would get if I printed the e-mail, but it's beyond my skill level. I hope that there is a switch somewhere that I can change to fix this problem.
    Thank you

    View | Headers | Normal

    I think that yours is set to "All".

  • APEX 4.0 IE8 - definition of value with dynamic Action - no display of the result

    Hello

    I use APEX 4.0 and IE8. I made a dynamic action that fires on the editing an item.

    Event: change

    Rype of selection items

    Article: P77_item_1

    Condition: No strings attached

    Real Actions: The value

    Action: Set

    Set type: PL/SQL function body

    : P77_item_2: = Y;

    Page items to submit P77_item_1

    Items affected

    Items of Type selection

    Elements P77_item_2

    I see that it works in session. Now, I see that P77_item_2 is inserted. But there is no display of the value.

    I tried item_2 as textfield, view only, or read-only, but the behavior is always the same. What can I do to show the change in the order of the day?

    Thank you!

    Le_di wrote:

    I use APEX 4.0 and IE8. I made a dynamic action that fires on the editing an item.

    Event: change

    Rype of selection items

    Article: P77_item_1

    Condition: No strings attached

    Real Actions: The value

    Action: Set

    Set type: PL/SQL function body

    : P77_item_2: = Y;

    Page items to submit P77_item_1

    Items affected

    Items of Type selection

    Elements P77_item_2

    I see that it works in session. Now, I see that P77_item_2 is inserted. But there is no display of the value.

    I tried item_2 as textfield, view only, or read-only, but the behavior is always the same. What can I do to show the change in the order of the day?

    Do not have access to an instance of APEX 4.0 to study, but any code of "PL/SQL function body" must include a RETURN clause:

    :p77_item_2 := 'Y';
    return :p77_item_2;
    
  • Get the data with more than one of the desired value

    Hello

    I need to shoot the records with one value of 'Other' more on delivery days fields.
    Delivery of fields are Mon, Mar, sea, game, Fri and Sam that indicates where the item will be shipped. The value can be at home, work, or other.

    Examples of data include:
    cust_id: 123
    Article: newspaper
    Mon: Home
    Kill: Work
    Sea: other
    game: Home
    Fri: other
    Sam: other


    And here is my request so far.
    Select
    cust_id,
    agenda,
    LUN,
    Mar,
    Kills,
    game,
    Fri,
    Sam
    sum (case when (del_mon = 'o' or del_tue =' o 'or del_wed =' o 'or del_thu =' o 'or del_fri =' o ' or del_sat = 'O') then 1)
    otherwise 0 end) as day_ctr

    of the customer

    Could you please help me with the right formula should I get this?

    Thank you in advance...

    Hello

    This should do it:

    Scott@my11g SQL>with sampledata as (
      2  select 123 cust_id, 'newspaper' item, 'Home' mon, 'Work' tue, 'Other' wed, 'Home' thu, 'Other' fri, 'Other' sat from dual
      3  union all
      4  select 456, 'newspaper' item, 'Home' mon, 'Work' tue, 'Home' wed, 'Home' thu, 'Home' fri, 'Other' sat from dual
      5  )
      6  --#### True query starts here ####
      7  select *
      8  from sampledata
      9  where (
     10  decode(mon,'Other',1,0)
     11  +decode(tue,'Other',1,0)
     12  +decode(wed,'Other',1,0)
     13  +decode(thu,'Other',1,0)
     14  +decode(fri,'Other',1,0)
     15  +decode(sat,'Other',1,0)
     16  )>1 ;
    
       CUST_ID ITEM      MON  TUE  WED   THU  FRI   SAT
    ---------- --------- ---- ---- ----- ---- ----- -----
           123 newspaper Home Work Other Home Other Other
    
  • I want to reduce my Inbox emails. Can I delete more than one page of the Inbox of the multiple emails, for example, all emails from an address that number in the hundreds, at the same time?

    I don't know but to delete the emails I want to throw, after the search and find hundreds of page (up to 50). How can I remove all at the same time, to save me hours of tedious work?

    Firefox send an e-mail, it's a web browser.

    If you use Firefox to access your e-mail, you use "webmail". You must seek assistance from your service provider or a forum for this service.

    If your problem is with Mozilla Thunderbird, check out this forum for support.
    http://www.mozillamessaging.com/en-us/support/

    or this one

    http://forums.mozillazine.org/viewforum.php?f=39

Maybe you are looking for