Sql expressions in Forms 4.5 Record Groups

I have a record group that was asked to change, and when I change it I get an 'Unhandled exception error in icrg 102' and then a Frm-12001. I've tracked it down to a view that uses a function call to format a address line. If I put the function call in the Sql statement in the record group forms will not except the statment. I believe that the Record Groups were created in Forms 4.0.

IF v_value = 'Y'
THEN
lvl$std.copy_number(0,'BLK1.V_ITEM_NAME1');
ND IF;
I written in post-query.What does
lvl$std.copy_number(0,'BLK1.V_ITEM_NAME1');do that
:blk1.v_item_name1 := 0;doesn't?

Similar Messages

  • Form Builder Static Record Group

    Hi Folks,
    I am a part of a development team where we do parallel development where a team in India is working on certain forms and we work on other forms.
    We faced a peculiar problem, both the teams use Oracle Forms 6i, but we lose values in the static record group attached to Static LOV.
    Have any one of you faced this problem before, please let me know.
    With Regards,
    Srikanth

    Hi all
    Should I install patches for correcting this problem ?
    Thanks and Regards,
    Srikanth

  • Pl/sql and record groups

    i am trying to populate a combo box with a record group. i have the following code:
    BEGIN
    POPULATE_LIST('LSTTEST','MODMAIN.RGPCBO');
    END;
    MODMAIN is the name of the form where the record group is.
    the combo box is not displaying any records.
    is there an easier way of doing this?

    Hi michael,
    Instead of populating combobox manually,
    do the following which is easier:
    First create a block , create item which is combobox time and assign name of database column of which value has to be populated.
    This will definetely solve ur problem...
    If still any problem then do mention it...
    Regards,
    Rakesh

  • "Disable Check for SQL Express" against SQL Server Agent

    Good afternoon,
    Seeing as it has been a know issue for many years now[1],
    is there a reason why Microsoft has yet to include a “Disable Check for SQL Express” override (similar to the
    Automatic Configuration (& other) monitors) for each of the following objects included in the
    Microsoft SQL Server Management Pack?
    SQL Server Agent Windows Service (Monitor)
    Discover SQL Server Agent for a DB Engine (Discovery)
    This would prevent me from have to continually create overrides
    disabling the monitor|discovery each time a new instance of SQL Express is installed in our Management Group.
    Thanks,
    Larry
    [1]
    http://jmkehayias.blogspot.ca/2009/01/sql-server-2008-express-sql-agent-won.html
    http://sqlblogcasts.com/blogs/sqldbatips/archive/2008/06/28/sql-server-2008-express-installs-sql-agent-but-don-t-bother-trying-to-start-it.aspx

    Hello,
    This is much easier
    http://blogs.technet.com/b/emreguclu/archive/2013/01/21/undiscovering-stop-monitoring-sql-2008-express-editions.aspx
    just exclude sqlexpress
    Regards
    Mohammad, IT NOC Team

  • Populating list item with a record group

    I'm trying to populate a list item (TList) with a Record group with a simple query: SELECT FRM_NAME FROM FORM
    In the forms WHEN_VALIDATE_NEW_FORM trigger, I use POPULATE_LIST('FORM_LIST', 'RG_FORM_LIST');
    Am I missing something? I get the error FRM-41334: Invalid record group for list population.

    thanks, i've tried that, but still nothing. I must be doing something simple, but very wrong. I tried with oracle's default scott/tiger schema, created a simple form with a record group with 2 columns, and populating a manually made poplist (populate_list('LIST4', 'RG1'); Still get errors:
    FRM-30191: No list items defined for required poplist.
    List LIST4
    Item: LIST4
    Block: EMP
    Form: MODULE5
    FRM-30085: Unable to adjust form for output.

  • Referencing Record Groups in a PL/SQL Library program unit

    I want to move a program unit into a PL/SQL Library. I know how to reference data items from the form, but how do I reference a record group? Here's the code sample:
    PROCEDURE pu_init_tree IS
    HTREE ITEM;
    V_IGNORE NUMBER;
    BEGIN
    HTREE := FIND_ITEM('CONTROL_TREE.MENU');
    V_IGNORE := POPULATE_GROUP('RG_USER_MENU_TREE');
    FTREE.SET_TREE_PROPERTY(HTREE, FTREE.RECORD_GROUP,'RG_USER_MENU_TREE');
    :CONTROL.Node_Selected := Ftree.Get_Tree_Node_Property('CONTROL_TREE.MENU', 1, Ftree.NODE_VALUE) ;
    END;
    Thanks much

    Hi,
    you can try adding parameters to your program unit:
    PROCEDURE pu_init_tree(your_item_name in varchar2, your_rec_group_name in varchar2) IS
    HTREE ITEM;
    V_IGNORE NUMBER;
    BEGIN
    HTREE := FIND_ITEM(your_item_name);
    V_IGNORE := POPULATE_GROUP(your_rec_group_name);
    FTREE.SET_TREE_PROPERTY(HTREE, FTREE.RECORD_GROUP,your_rec_group_name);
    :CONTROL.Node_Selected := Ftree.Get_Tree_Node_Property('CONTROL_TREE.MENU', 1, Ftree.NODE_VALUE) ;
    END;
    Regards,
    Hugo

  • SQL Expression fields do not display when no records are returned

    I have a report that uses SQl expression fields to summarize in the Report footer.  When the main report does not contain any records the SQL expression fields are blank.
    Is there a way to force these SQL expression fields to be evaluated evn when the main report does not contain any records.
    Thanks

    Hi,
    You can try this :
    Under Report Options, check "Convert Database Null values to Default".

  • How to create Static Record group in Oracle Forms??

    Dear All,
    I have the following values V1,V2 to be placed in my list item field during DML operations.
    I have an example to create the record group based on the table; whereas i have never tried for static value creation.
    Could you please guide me how can i acheive this.?
    Thanks ....
    Regards,
    Sunil.G

    Thanks dhivya for your reply.
    Actually what happens is; when i use the same methodology as you mentioned, it is asking me to set the Initial value.
    Whereas in my applications; user has to manually select any of the values i.e eithe V1 or V2 for the first time.
    Moreover i have found the query:-
    I have created a static record group RG_VERSIONS i.e creating a new record group with the static values mentioning the "Column names " as "Version_label" which i have given the column values as "V1" and "V2" and then another column name as "Version_value" with the column values as "V1" and "V2".
    Then i used the below query in the WHEN-NEW-FORM-INSTANCE trigger:-
    PROCEDURE p_when_new_form_instance
    IS
    l_rg_id recordgroup;
    l_item_id item;
    BEGIN
    --Populating value for  Version Type based on static record group
    l_rg_id := FIND_GROUP ('RG_VERSION');
    IF NOT ID_NULL (l_rg_id)
    THEN
    l_item_id := FIND_ITEM ('BLOCKNAME.COLUMN_NAME');
    POPULATE_LIST (l_item_id, l_rg_id);
    END IF;
    END p_when_new_form_instance;
    Then it was working fine.
    Thanks for your time.
    Regards,
    Sunil.G
    Edited by: Sunil G on Jun 27, 2010 6:00 AM

  • SQL expression field is not displayed on the page header if no records

    Hello
    I'm creating a quite simple report. In this report I've got a SQL expression field which returns a DateTime
    I display this field on the page header section.
    Everything is working fine except when my principal query doesn't return any records my SQL expression field is not displayed. It doesn't seem to be evaluated.
    So, I would display this field even if my Details Section doesn't contains any record.
    I hope you understand what I mean.
    Can someone help me?
    thanks

    Hello,
    I thought about creating a formula but the value I need is stored in a database.
    So i created a simple SQL expression field.
    SELECT CONVERT(DATE,j_1) FROM VW_STD_DATEFIXING
    And this expression doesn't have any dependencies.

  • Reference in SQL Expression to a group key

    Hello to everybody, i am working with a report in Crystal Report 11 and i need some help.
    In the design of my report i have two groups corresponding to a table which has two keys. The first one belongs to an Id and the second to a datetime.
    The fact is that i have to filter second group with a specific date that i have to obtain with a sql query. So i was thinking in using SQL Expression but i cant make it the right way because i cant filter in the where condition with the id of the superior group. I dont know how to write the where condition.
    If anyone can help me i will be grateful.
    Thanks.

    Thank you Sastry for responding so quickly.
    I think you dont understand me. I have this:
    -Group 1: id
             -Grupo 2: datetime
    the field datetime i need to filter with a specific date. In order to be clear the SQL Expression i made to filter this datetime is:
    (select max(datetime) from Table1)
    That maximum datetime i need it be for each id in the Group 1 (so the sql expression is not a single value, its a single value for each id of Group1), but i can't put this in the sql expression:
    (select max(datetime) from Table1 where Table1.id = Group1.id)
    and then the other problem is how to filter the datetime in group 2 with the value of the SQL Expression
    PD: Where is the option add command in crystal report?

  • CR IX R2: SQL Expression Editor - Max on Group

    This works, but it only shows the MAX value of the entire column, for all teams:
    (SELECT MAX("PlanSegment_Team"."priority")
    FROM   (("Plan" INNER JOIN "PlanSegment"
    ON "Plan"."pkPlan"="PlanSegment"."fkPlan") INNER JOIN "PlanSegment_Team" "PlanSegment_Team"
    ON "PlanSegment"."pkPlanSegment"="PlanSegment_Team"."fkPlanSegment") INNER JOIN "Team"
    ON "PlanSegment_Team"."fkTeam"="Team"."pkTeam"
    But I want to show the MAX value for each Team's list of priorities. The following is my best guess:
    (SELECT MAX("PlanSegment_Team"."priority"), "PlanSegment_Team"."fkTeam"
    FROM   (("Plan" INNER JOIN "PlanSegment"
    ON "Plan"."pkPlan"="PlanSegment"."fkPlan") INNER JOIN "PlanSegment_Team" "PlanSegment_Team"
    ON "PlanSegment"."pkPlanSegment"="PlanSegment_Team"."fkPlanSegment") INNER JOIN "Team"
    ON "PlanSegment_Team"."fkTeam"="Team"."pkTeam"
    GROUP BY "PlanSegment_Team"."fkTeam")
    but it gives me an error of
    "Only one expression can be specified in the select list when the subquery is not introduced with EXISTS."
    Any help?

    Don,
    Thanks for your quick response.  Are you saying I just got lucky with my first expression, even though it uses SELECT?
    If so, is there somewhere that will tell me exactly what SQL Expression Editor is supposed to be for? I'm trying to learn this stuff to make myself more job-marketable.
    Thank you very much,
    Gene

  • Crystal Report Windows Form Viewer - Error in compiling SQL Expression

    I am using C# and the Crystal Reports API to render reports in a windows application. Recently we decided to start using SQL Expressions in our reports. The reports developers are able to use them in development, but as soon as we deploy the reports to production, we are seeing the following error.
    Why does this work when developing forms but not when using the C# API?

    Hi Adam
    I pinged couple of people here, but so far have not got a reply. I'll update this post as soon as I get anything.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to pass record Group from Forms with DATA_PARAMETER to Reports Server

    How to pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    When we use products on run time we are using data_parameter for passing record Groups to reports via run_product but now we have to use application server and reports server for same reports.
    We met with <FRM-41214 Unable to run reports> for passing DATA_PARAMETER to reports server when used RUN_REPORTS_OBJECT.
    How can we pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    Thanks,
    Arif

    Hi Mandeep,
    Could you please tell me how can i pass data parameter from forms to report through run_product.

  • Changing the record group query in seeded forms

    Hi all,
    I need to change the record group query in one seeded form.
    Can it be done through custom pll or what is the correct approach to do that..
    Thanks,
    Devang

    you want to do that at runtime?

  • Record group parse error in Forms 6.0

    Hallo,
    during generating a form I get always the following
    error message:
    ==========================================================
    FRM-30064: Unable to parse statement icrgg/icrggc: hicrg.
    Record Group REC_TABLE_NAME
    Form: DEMO
    FRM-30085: Unable to adjust form for output.
    ==========================================================
    In the record group I reference a block item, which obviously
    causes this parse error.
    Versions:
    Server 8.0.5
    Forms 6.0.5.0.2
    Many thanks for any hints!
    Greetings
    Wolfgang Gabriel
    null

    Hello Noel
    sometimes If you use a rserved word in you form for
    fields/Items/Blocks naming it will be accepted in the
    Client/Server, but the same words will not be accepted in the web
    The only word that it may cause the problem in your select is
    the NAME
    Check this out it may or may not solve your problem
    Hope This helps
    Saleem
    Noel Alley (guest) wrote:
    : Wolfgang,
    : Do you have answer to this problem as yet, because I also have
    : the same problem. I do not get the error if I am generating
    for
    : client/server, but after the form is being generated on the
    : server (Sun Solaris) for web deployment. For the info of
    anyone
    : else who might be able to help, the record group select is
    very
    : simple
    : select e.name
    : from employee e
    : where e.empid = :emp_block.empid
    : I have logged a TAR with Oracle, who say that they cannot
    repeat
    : the problem. They are sending me the latest patch and I will
    let
    : you know if the works
    : Noel
    : Wolfgang Gabriel (guest) wrote:
    : : Hallo,
    : : during generating a form I get always the following
    : : error message:
    : : ==========================================================
    : : FRM-30064: Unable to parse statement icrgg/icrggc: hicrg.
    : : Record Group REC_TABLE_NAME
    : : Form: DEMO
    : : FRM-30085: Unable to adjust form for output.
    : : ==========================================================
    : : In the record group I reference a block item, which obviously
    : : causes this parse error.
    : : Versions:
    : : Server 8.0.5
    : : Forms 6.0.5.0.2
    : : Many thanks for any hints!
    : : Greetings
    : : Wolfgang Gabriel
    null

Maybe you are looking for