Help !!!set Arguments property for block based on store procedures

hi
i build a block based on storeprocedures ,if i set the
Query Data Source Arguments property in design time with a value
my form will work,
but i need to set this property programetically and in runtime,
if there is any built_in or other ways ,please help me.
thanks in advance.
shoja.

Sorry, but there is no way to do this.
If you need to switch the table you're selecting from, you have to do this
inside your stored procedure.

Similar Messages

  • Help me !!!!!! set Arguments property for block based on store procedures

    hi
    i build a block based on storeprocedures ,if i set the
    Query Data Source Arguments property in design time with a value
    my form will work,
    but i need to set this property programetically and in runtime,
    if there is any built_in or other ways ,please help me.
    thanks in advance.
    shoja.

    Sorry, but there is no way to do this.
    If you need to switch the table you're selecting from, you have to do this
    inside your stored procedure.

  • Setting Query Data Source Arguments Property for Block with TYPE Procedure

    Hi,
    I have a block whose type is 'Procedure', this returns a PL/SQL table.
    I pass an IN OUT variable declared in the Package header and all works well.
    What I need to know is how, if I have ANOTHER argument, how do I set it programatically prior to EXECUTE_QUERY.
    I can see how to set the Name and Value manually at the "Query Data Source Arguments" property but if I need to set it dynamically in the code how would I do it.

    Thanks,
    Worked it out.
    Set the VALUE to the name of a Global variable and populated the variable before executing the procedure.
    Thanks

  • Data block based on stored procedure with  input arguments

    Hi,
    I am able to create a data block based on stored procedure.
    but I want that procedure to take input arguments as well and I am facing the issue while setting the value for that input arguments from another block item.
    Please somebody help, How to set the value for input argument from another control block- item?.(Note :Data block is based on the stored procedure)
    Thanks in Advance,
    Anandan Muthukannan

    I did exactly the same way you mentioned.
    But while building the form, The call to the procedure in 'QUERY-PROCEDURE' trigger has been modified like this way
    procedure_name(qp_data,':BLOCK.ITEM');
    so in procedure i am getting the value as ':BLOCK.ITEM' not the expected value.

  • HELP!! Forms 5.0: Block based on database procedure

    I like to create block based on db procedure, but I cannot find
    how to do this on ORACLE documentation. Please help.
    null

    It's very interesting to know what is the such procedure ? Or
    may be this is not a procedure but functiion ? So what must this
    function return ?
    I didn't found out any hint about building block based on
    procedure
    Rashmi Rungta (guest) wrote:
    : Alexander Borisov (guest) wrote:
    : : I like to create block based on db procedure, but I cannot
    find
    : : how to do this on ORACLE documentation. Please help.
    : Hi,
    : Using the database wizard , select the second option. Then in
    the
    : next screen you will be prompted for the procedure name. Give
    the
    : respective db procedure name and then 'Refresh'. You will see
    the
    : data coming out of the procedure below. Then just proceed by
    : clicking on 'next' consecutively.
    : Hope this helps.
    : Rashmi
    null

  • Is there any way to set a property for all existing Form Fields of a particular type (Che

    In versions of Acrobat prior to version 9, selecting a particular form tool (Textbox, Checkbox), etc. would only display Fields of that particular type in the Acrobat Designer (not LiveCycle).
    If one wanted to change a particular property of all check boxes for example, one would select the Checkbox Tool, Click Edit>Select All>Right Click one of the Checkboxes and Set the Property for all of the Form's Checkboxes.
    Selecting a particular form tool in the Acrobat (not Lifecycle) Designer in version 9 appears to no longer filter the display to that particular form field type. Is there any way to display only 1 particular form field type in or set a particular property for all existing Form Fields of a particular type (Check Box, Text Box, etc.) in Acrobat 9?

    Thanks for the tip..Am aware of this option and have used JavaScript to batch change properties in the past...
    Am looking for a way to replicate the interactive procedure available in previous versions.  Also, want a way to only display certain Form Field types (use this when analyzing forms which I didn't create).

  • Set layout property for dynamic group element

    hi ,
         I am creating group ui element dynamically . can any one plz tell me how to set layout property for group as gridlayout DYNAMICALY??
    Kavita

    Hi,
    Following is the skeleton of the code you need.
    IWDTransparentContainer container = view.getElement("<Your container>");
           IWDGridLayout gridLayout = container.createLayout(IWDGridLayout.class);
           gridLayout.setCellPadding(cellPadding);
           gridLayout.setCellSpacing(cellSpacing);
           IWDTransparentContainer container = null;
           IWDGridData grid = container.createLayoutData(IWDGridData.class);
           grid.setHAlign(hAlign);
           grid.setVAlign(vAlign);
           grid.setPaddingRight(paddingRight)
           grid.setPaddingRight(paddingRight)
           grid.setWidth(width)
    Regards
    Ayyapparaj

  • Forms [32 Bit] Version 6.0.5.0.2 :: BLock based on stored procedure

    Trying to develop a form having a block based
    on stored procedure. My form works fine if
    the stored procedure having REF CURSOR as one
    of the argument but if I am using dynamic SQL
    in my procedure I can not use Strong REF CURSOR, so I had to use Pl/Sql Table as one of the parameter in the proceudre.
    In that case when I run my form and Execute the query it just comes out of the form without displaying anything and also it doesn't throw any error.
    Don't know what I am doing wrong.
    Pl. Help...
    null

    I drilled down the proble further and identified that i can
    recreatr the problem in any 7.3.4 database ....
    But in 8.0.5 it's working fine .....
    Is developer 6.0 is going to support Oracle 7.3.4
    it'll be highly appreciated if any one from Oracle development
    team can give me a response
    Thanks in advance...
    Lebon Mathew (guest) wrote:
    : Problem : If a block value is refered in
    : a LOv - record group query
    : the form cannot adjust the out put .. and
    : is not generating.....
    : Record group query which works :
    : select security_role, sec_role_desc, database_role
    : from security_role
    : where wnd_appln = 'XXXXXXXXX'
    : order by security_role, database_role
    : Record group query which is not working :
    : select security_role, sec_role_desc, database_role
    : from security_role
    : where wnd_appln = :APP_ROLES_BK.wnd_appln
    : order by security_role, database_role
    : Error Generated :
    : FRM-30064: Unable to parse statement icrgg/icrggc: hicrg.
    : Record Group SECURITY_ROLE_LOV
    : Form: EMPLOYEE
    : FRM-30085: Unable to adjust form for output.
    : Table structure :
    : CREATE TABLE security_role
    : security_role VARCHAR2(15) NOT NULL,
    : sec_role_desc VARCHAR2(20) NOT NULL,
    : open_nsr VARCHAR2(1),
    : open_pkt VARCHAR2(1),
    : chg_wk_grp VARCHAR2(10),
    : asgn_anlst VARCHAR2(10),
    : updt_oth_wkgp_pkt VARCHAR2(1),
    : admin_tasks VARCHAR2(1),
    : create_po VARCHAR2(1),
    : billing_changes VARCHAR2(1),
    : invoice_changes VARCHAR2(1),
    : change_owner VARCHAR2(1),
    : wnd_appln VARCHAR2(15),
    : database_role VARCHAR2(20)
    : PCTFREE 10
    : PCTUSED 40
    : INITRANS 1
    : MAXTRANS 255
    : TABLESPACE wa0dat0t01
    : STORAGE (
    : INITIAL 32768
    : NEXT 8192
    : PCTINCREASE 0
    : MINEXTENTS 1
    : MAXEXTENTS 121
    : w@w Lebon Mathew
    : WellsFargo - Telecom Applications
    : (415)-477 6445
    null

  • Forms9i, data block based on stored procedures, refresh on update ?

    Hi,
    I am using
    Forms [32 Bit] Version 9.0.2.9.0 (Production)
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
         With the Partitioning, OLAP and Oracle Data Mining options
         JServer Release 9.2.0.5.0 - Production
    Oracle Toolkit Version 9.0.4.0.23 (Production)
    PL/SQL Version 9.0.1.3.1 (Production)
    Oracle Procedure Builder V9.0.2.0.7 Build #1022 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 9.0.2.0.0 - Production
    Oracle Virtual Graphics System Version 9.0.1.5.0 (Production)
    Oracle Tools GUI Utilities Version 9.0.4.0.9 (Production)
    Oracle Multimedia Version 9.0.4.0.9 (Production)
    Oracle Tools Integration Version 9.0.2.0.0 (Production)
    Oracle Tools Common Area Version 9.0.1.0.0
    Oracle CORE     9.0.1.2.0     ProductionI have a module based on stored procedures. I have defined query, lock and update procedure. All of them are working as they should, I mean that when looking at the input and output from these procedures I don't see anything blatantly wrong.
    Now, when I update a table field in the form and call the update stored procedure, this procedure takes the updated values in considerations, updates some more fields, and remove some records.
    It is working as it should, except for two details :
    1- I don't see the values updated by the procedure in the Form;
    2- even though some records were removed from the table by the procedure, I still see all my records.
    Is there a way to display the returned table?
    And, is there any documentation about data block based on stored procedures, what are the required signatures and limitations of those stored procedures, what a lock procedure is supposed to do (mine does 'null;' ...), how to map a collection type defined in Oracle to a Form data block ? Any link will be appreciated, I have found half a dozen page vaguely detailing this on Google, but nothing that can compare to a usual Oracle manual. Maybe I have missed something.
    Thank you for your help.
    adsm

    Yes, I was hoping to use these procedures to map the collection type returned to the database to the block data. I guess I was wrong. Except for the initial query and reading some other information from the database, I don't have to use these procedures as I do not write anything to it.
    Thank you for your help, I will go on from there.
    So, it means that I will have to iterate through my collection inside Forms and manipulate my data row by row. Or, is there a way to pass an Oracle collection type between the database and the Forms client and have it displayed without having to iterate through the rows and mapping each field?
    adsm

  • Set visibility property for items depending on other items

    Hello,
    I want to set the visibility setting for an item that I have, the steps should be as the following,
    for example
    if I have an item that asked,
    do you have children ?
    if the answer is Yes,
    the next item should be visible which let's say, number of  them
    if no,
    the next item should be not visible
    I tried to set a trigger for the item I am controlling its visibility which is
    pre-text-item and wrote
    if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
      then
      set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_true) ;
    else
      set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_false) ;
      end if;
    but it doesn't seem to be right, ,,,
    thank you

    I can see two potential problems.  The first:
    if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
    Does CHEQUE_TABLE.CHEQUE_RECEIVED refer to a Data Block and Item?  If yes, then you are trying to tell Forms to look at the value of the string 'CHEQUE_TABLE.CHEQUE_RECEIVED' when you should be refering to the value of the Block.Item through direct reference, eg:
    IF :CHEQUE_TABLE.CHEQUE_RECEIVED = 'yes'
    How is the value of CHEQUE_RECIEVED set?  Does the user select the YES value from a List of Value (LOV) or from a Poplist or do they enter the value by typing it in?  If your code is looking at the string 'yes' and comparing it to the value of the Block Item which is in upper or mixed case, then 'yes' = 'Yes' or 'yes' = 'YES' will evaluate to FALSE instead of TRUE.
    It is always a good idea to use a Poplist or a List of Values when you are expecting specific values to be entered by the user; this enables you to force the value to be entered the same by everyone.  If the user CAN type the value in, then at least set the Case Restriction property to UPPER or LOWER so regardless of how the user enteres the value, it will be stored in the corrected case.
    Craig...

  • Need help setting up file for program Ai CS5 Mac

    Hello everyone, I am hoping you can help me with something. I am having a 20 page conference program printed through a 3rd party company.The printer sent me back the proof today and on almost every page my artwork is being chopped off.
    This is the email sent with the proof today:
    "               I want you to look at these spreads and tell me if this is how you       visualized your finished pages? A lot of your art is being cut off. The finished size is 11x17.       You sent pages that were 9x12, so I used them at 100% on the 12x18       press sheet. You only need to provide a 1/8" bleed, not a 1/2". You also have       bleeds on the centers of the spreads. Those should not have a bleed. Only the outside 3 edges should       bleed.
    I had trouble getting all of the art to line up."
    Printer Info:
    They print on 12/18 trimmed down to 11 x 17 (for full bleed)
    Requested bleed: 1/8
    They print out of Quark
    I was told I can send them individual PDFs and they will paginate them (in order and add page numbers)
    I created a file in Ai CS5 with 20 artboards (one for each page of the program) Now, the trim marks should be placed at 1 inch because they are trimming 1 inch from the top and 1 inch from the bottom. The bleed should be 1/8 so 0.125 on the 3 "outside" edges. Is this correct?
    I primarily do lay-outs, the person responsible for this project bailed last minute so I am a bit stuck. If I am designing it as individual pages what are the exactly dimensions, bleed, and trim marks needed for each page to be set up correctly for the printer to paginate. Should I also add a .5 margin along the edges as a safe zone or is that not necessary because of the bleed?
    Let me know if I didn't provide enough information. I appreciate any help I can get. Thanks in advance!
    -d

    It is often just simpler to build your pages (or spreads) to the actual size of the press sheet.
    I'll assume this is a saddle-stitched booklet.
    The press sheets will be 12 x 18 inches.
    It will be printed, then, as 11 x 17 printer spreads.
    That means it will have a half inch (not a whole inch) between the trims and the press sheet edges on all four sides.
    There will be three-eights inch between the bleed and the edges.
    (This is crowding things a tad; typically one tries to allow at least a half-inch gripper margin.)
    Anyway....
    1. Setup the document with twenty 9x12 vertical Artboards, with zero spacing, in two columns. Zero Bleed.
    (Often, depending on the nature of the content, I would choose to build such a thing as ten 12 x 18 Artboards, with content already arranged as printing spreads, thus eliminating the need for stripping. But in the following, you'll go ahead and make 20 separate Artboards, abutted in pairs, and treat these as two-page reader spreads, to make layout easy, and to accommodate artwork that may jump the gutter.)
    2. Turn on Show Grid. Turn on Snap To Grid.
    Rectangle Tool: Click the page. In the dialog, specify a 17 x 11 rectangle. This corresponds to your trim.
    Rectangle Tool: Click the page. In the dialog, specify a 17.25 x 11.25 rectangle. This corresponds to your bleed.
    Center align the two rectangles to each other, both horizontally and vertically.
    3. Zoom in. White Pointer: Snap the upper left corner of the rectangles to the grid at .375 H and .375 V of the top left Artboard.
    4. Convert the two rectangles to Guides. (View>Guides>Make)
    5. Line Tool: Snapping to the grid, draw your own trim marks at each corner, outboard of the trim. Use .25 pt. stroke weight. Registration color.
    6. Unlock Guides. (turn off View>Guides>Lock)
    7. Black Pointer: Marquee select around all the trim marks and the two rectangluar Guides.
    DoubleClick the Black Pointer. In the resulting Move dialog, enter a vertical movement of 12" and click copy.
    Transform Again (Ctrl D) 8 times.
    Now you have a set of trim guides, bleed guides, and trim marks on all 10 two-page reader spreads.
    8. Create the content as if the pairs of Artboards are facing pages of reader spreads. The top pair are the front and back. The other pairs are sequentially-numbered reading speads. Set up this way, your artwork can jump the gutter when desired.  You can put other printer's marks (sep names, etc.) in the bleed area if needed.
    9. Save A Copy to PDF with Use Artboards checked. The resulting PDF will contain 9x12 vertical pages. Viewed as spreads in Acrobat, you can see that the pages align.
    10. But when they are printed, they will be stripped into two-page printing spreads, ordered like so:
    JET

  • Setting Hidden property for a Resource Object

    Hi,
    I am trying to set the hidden property for a folder by this code.
    // ICollection coll defined
    IPropertyName propName = new PropertyName("http://sapportals.com/xmlns/cm", "hidden");
    IProperty prop = coll.getProperty(propName);
    IMutableProperty mutProp = prop.getMutable();
    mutProp.setBooleanValue(true);
    coll.setProperty(prop);
    This is not working, any idea what would have gone wrong ?
    Thanks,
    Sam

    Hi,
    I am not getting any excpetion...
    i have log messages before setting the propert and after setting the property...
    so if i am trying to set from false to true......it is not getting set to true but remaining as false....
    i am trying this with /documents repository.
    Can any body give some sample snippet for setting the hidden property / is there anything else i need to do to complete the setting.
    Regards,
    Satish

  • Set valign property for dynamic attribute

    hi,
    i hv created an application having dynamically created ui elements.
    i want to set valign property of the label i hv created.
    also , i want to set the latout of the transperent container.
    i hv used the foolowing code:
       trans.createLayout(IWDFlowLayout.class);
    but i get the elements one on top of next not one after another.
    plz help.
    thanks.
    regards,
    ankita

    hi,
    i hv created the following appl:
    http://infpw01622:50100/webdynpro/dispatcher/local/POP_UP/PopUp_Appl?SAPtestId=24
    bt i want it the following way:
    http://infpw01622:50100/webdynpro/dispatcher/local/DialogBox/DialogApp?SAPtestId=9
    Regards,
    ankita

  • Help setting up sharing for music playlists family sharing vs home sharing

    how do I set up sharing for music playlists for my iPad ios8 and sister new iPad.
    previous set up was home share between our macs. Now want to share with iPads added to the mix
    does family share offer playlist sharing
    how does (or not) match come into the set up
    please clarify home sharing. Family sharing and the use of match
    what is the best set up for me. If I use family share do I sign out of home share

    You are comparing two quite different concepts, you may want to look at the following articles.
    Family Sharing and Apple IDs for kids
    Understanding Home Sharing
    iTunes Match

  • Block based on Stored Procedures & Locking_Mode

    Hello,
    I'm creating a block in Forms 6.0.8 based on Stored Procedures. I'm using the example given in Metalink doc 52778.1. Updates to data work fine if locking_mode = 'Immediate'. If I set locking_mode to 'Delayed' and run the form, when I try to update and commit something, then the IF condition in lock-procedure (grp_lock) always returns TRUE and I run into the exception trapped there. It appears that Forms is passing NEW values in p_grp_data if locking_mode is Delayed and this is causing the problem. Is there any thing I could do in the form or procedure (preferably in the procedure) to solve this problem ? I'm trying to write procedures that will work with both Immediate and Delayed locking_modes
    thanks in advance..
    -- Table and package source:
    -- GRP
    create sequence grp_s
    create table grp
    id number constraint grp_pk primary key,
    name varchar2(10) not null constraint grp_uk unique,
    description varchar2(30) not null,
    active varchar2(1) default 'Y'
    create or replace trigger grp_bri before insert on grp for each row
    begin
    select grp_s.nextval
    into :new.id
    from dual ;
    end ;
    CREATE OR REPLACE PACKAGE grp_pkg AS
    TYPE grpidrec IS RECORD( id grp.id%TYPE ) ;
    TYPE grprec IS RECORD ( id grp.id%type, name grp.name%type, description grp.description%type, active grp.active%type ) ;
    TYPE grp_cursor IS REF CURSOR RETURN grp%rowtype ;
    TYPE grp_tab IS TABLE OF grp%rowtype INDEX BY BINARY_INTEGER ;
    TYPE grp_id_tab IS TABLE OF grpidrec INDEX BY BINARY_INTEGER ;
    PROCEDURE grp_refcur( p_grp_data IN OUT grp_cursor,
    p_group_name IN grp.name%type ) ; -- use if a ref cursor is required
    PROCEDURE grp_query( p_grp_data IN OUT grp_tab, p_group_name IN grp.name%TYPE ) ;
    PROCEDURE grp_insert( p_grp_data IN grp_tab ) ;
    PROCEDURE grp_update( p_grp_data IN grp_tab ) ;
    PROCEDURE grp_delete( p_grp_data IN grp_id_tab ) ;
    PROCEDURE grp_lock( p_grp_data IN grp_tab ) ;
    END grp_pkg ;
    sho err
    create or replace package body grp_pkg as
    -- ================================================================================
    PROCEDURE grp_refcur( p_grp_data IN OUT grp_cursor, p_group_name IN grp.name%type ) AS
    begin
    open p_grp_data FOR select id, name, description, active
    from grp
    where name = nvl( p_group_name, name ) ;
    end ;
    -- ================================================================================
    PROCEDURE grp_query( p_grp_data IN OUT grp_tab, p_group_name IN grp.name%TYPE ) AS
    i number ;
    CURSOR grp_select IS
    SELECT id, name, description, active
    FROM grp
    WHERE name = nvl( p_group_name, name ) ;
    begin
    OPEN grp_select ;
    i := 1 ;
    LOOP
    FETCH grp_select INTO p_grp_data(i).id, p_grp_data(i).name, p_grp_data(i).description, p_grp_data(i).active ;
    EXIT WHEN grp_select%NOTFOUND ;
    i := i + 1 ;
    END LOOP ;
    end ;
    -- ================================================================================
    PROCEDURE grp_insert( p_grp_data IN grp_tab ) AS
    i NUMBER ;
    begin
    FOR i in p_grp_data.FIRST .. p_grp_data.LAST
    LOOP
    INSERT INTO grp( name, description, active )
    VALUES ( p_grp_data(i).name, p_grp_data(i).description, p_grp_data(i).active ) ;
    END LOOP ;
    end ;
    -- ================================================================================
    PROCEDURE grp_update( p_grp_data in grp_tab ) AS
    i binary_integer ;
    rec_modified exception ;
    BEGIN
    FOR i in p_grp_data.first .. p_grp_data.last LOOP
    UPDATE grp
    SET name = p_grp_data(i).name,
    description = p_grp_data(i).description,
    active = p_grp_data(i).active
    WHERE id = p_grp_data(i).id ;
    if sql%rowcount = 0 then
    raise rec_modified ;
    else
    -- success
    null ;
    end if ;
    END LOOP ;
    exception
    when rec_modified then
    raise_application_error(-20006, 'Record already modified' ) ;
    when others then
    raise_application_error(-20007, 'Other error : ' || sqlerrm ) ;
    END ;
    -- ================================================================================
    PROCEDURE grp_delete( p_grp_data IN grp_id_tab ) AS
    i BINARY_INTEGER ;
    begin
    FOR i IN p_grp_data.FIRST .. p_grp_data.LAST LOOP
    DELETE FROM grp
    WHERE name = p_grp_data(i).id ;
    END LOOP ;
    end grp_delete ;
    -- ================================================================================
    PROCEDURE grp_lock( p_grp_data IN grp_tab ) AS
    i BINARY_INTEGER ;
    grec grprec ;
    err varchar2(255) ;
    errcd number ;
    rec_modified exception ;
    begin
    FOR i in p_grp_data.FIRST .. p_grp_data.LAST LOOP
    begin
    SELECT id, name, description, active
    INTO grec
    FROM grp
    WHERE id = p_grp_data(i).id
    FOR UPDATE OF description NOWAIT ;
    -- this part returns true
    -- if locking_mode = 'Delayed'
    -- Forms is passing NEW values in p_grp_data if mode is Delayed
    -- and OLD values if mode is Immediate
    if ( grec.name != p_grp_data(i).name
    OR grec.description != p_grp_data(i).description
    OR grec.active != p_grp_data(i).active ) THEN
    raise rec_modified ;
    end if ;
    exception
    when no_data_found then
    raise_application_error( -20007, 'Record deleted by another user' ) ;
    when rec_modified then
    raise_application_error(-20006, 'Record modified by another user' ) ;
    when others then
    raise_application_error(-20009, 'Others' ) ;
    end ;
    END LOOP ;
    end ;
    -- ================================================================================
    end grp_pkg ;
    show error package body grp_pkg

    Yes, I was hoping to use these procedures to map the collection type returned to the database to the block data. I guess I was wrong. Except for the initial query and reading some other information from the database, I don't have to use these procedures as I do not write anything to it.
    Thank you for your help, I will go on from there.
    So, it means that I will have to iterate through my collection inside Forms and manipulate my data row by row. Or, is there a way to pass an Oracle collection type between the database and the Forms client and have it displayed without having to iterate through the rows and mapping each field?
    adsm

Maybe you are looking for