List item - Record Group Query - Alignment improper Order

Dear All,
When am trying to concatenate two columns using record group query and displaying in the list item, the alignment is not in proper order.
E.g; Below is the columns and data's used in process:
CODE_VALUE     SHORT_DESC     DESCRIPTION
ROLL1     Customer - Non accidental     Production, booking with other carrier, bad projection.
ROLL2     Customer - Accidental     L/C, B/L draft, Customs, Samples, AMS, LAR.
ROLL3     ABC - Lack of empty     Lack of empty units.
ROLL4     ABC CDE - Roll over     AGR RRR decision.
ROLL5     ABC XXX - Accidental     IMO or OOG refused, operational problems, Cut & Run.
ROLL6     ABC YYY - Fictive booking     Equipment buffer, dummy booking.
Below is the record group query used in forms:
PROCEDURE p_when_new_form_instance
IS
GROUP_ID recordgroup;
list_id item := FIND_ITEM ('BLK_CONTROL.LI_ROLL_REASON');
rg_name VARCHAR2 (20) := 'LI_ROLL_REASONS';
status NUMBER;
l_query VARCHAR2 (4000);
BEGIN
l_query :=
'SELECT rpad(short_desc,50,'' '')||'' | ''||description description, code_value code_value FROM codes WHERE code_value IN (''ROLL1'', ''ROLL2'', ''ROLL3'',''ROLL4'',''ROLL5'',''ROLL6'')';
GROUP_ID := CREATE_GROUP_FROM_QUERY (rg_name, l_query);
status := POPULATE_GROUP (GROUP_ID);
POPULATE_LIST (list_id, GROUP_ID);
EXCEPTION
WHEN OTHERS
THEN
pl_common.when_others;
END;
Moreover i have my list item font property by default as ""MS SANS SERIF" and when i run in Forms Builder am getting the alignment as below.
Result:
====
DESCRIPTION     CODE_VALUE
Customer - Non accidental | Production, booking with other carrier, bad projection.     ROLL1
Customer - Accidental | L/C, B/L draft, Customs, Samples, AMS, LAR.     ROLL2
ABC - Lack of empty | Lack of empty units.     ROLL3
ABC CDE - Roll over | AGR RRR decision.     ROLL4
ABC XXX - Accidental | IMO or OOG refused, operational problems, Cut & Run.     ROLL5
ABC YYY - Fictive booking | Equipment buffer, dummy booking.      ROLL6
Above order is not the expected result as all the |(pipe) symbol should display in proper order as below.
Expected Result:
==========
DESCRIPTION     CODE_VALUE
Customer - Non accidental | Production, booking with other carrier, bad projection.     ROLL1
Customer - Accidental | L/C, B/L draft, Customs, Samples, AMS, LAR.     ROLL2
ABC - Lack of empty | Lack of empty units.     ROLL3
ABC CDE - Roll over | AGR RRR decision.     ROLL4
ABC XXX - Accidental | IMO or OOG refused, operational problems, Cut & Run.     ROLL5
ABC YYY - Fictive booking | Equipment buffer, dummy booking.      ROLL6
I tried with RPAD and LPAD still the alignment issue is there; i know the issue is because of invariable length of the font.
But is there any solution to override this it will be of great help.
So please help!!!!!!!!!!!!!!!!!
Thanks..................
Regards,
Sunil.G

Hi Francois,
Thanks for your reply. I have tried changing the font to "Courier(Western)" it is working fine.
But as per the standards defined, it should be "Ms Sans Serif" nothing apart from that.So that is where the problem lies. :(
Regards,
Sunil.G

Similar Messages

  • Record Group Query - item block

    I need to calculate a Record Group Query using a block item value, but when a use the query below the query didn't return rows:
    SELECT OID_SIIB_FINALIDADE_TED
         , F.COD_FINALIDADE || ' - ' || F.DES_FINALIDADE DES_FINALIDADE
      FROM SIIB_FINALIDADE_TED F
          , ( SELECT P.TP_PARAMETRO
                FROM SIIB_PARAMETROS_GERAIS P  
              WHERE P.NM_PARAMETRO = 'TIPO_' || :BLOCK.ITEMX ) PAR -- using the :BLOCK.ITEMX the query did'nt return data
    WHERE PAR.TP_PARAMETRO = F.TPO_FINALIDADEBut if a use a static query the Record Group( changing :BLOCK.ITEMX for 'STR0005' ) return the desired values.
    This Record Group is used to pupulate a LOV.
    Edited by: user5914526 on Feb 15, 2012 9:26 AM
    Edited by: user5914526 on Feb 15, 2012 9:26 AM
    Edited by: user5914526 on Feb 15, 2012 9:29 AM

    No, it doesn't .
    And return the message: "There aren't data in the List of Values"
    And the block item is not empty or null.
    Edited by: user5914526 on Feb 15, 2012 10:13 AM

  • URGENT,FRM-41337: Cannot populat the list from record group

    Hi all:
    Can anyone help me in that problem?
    I have a database item in the block as a list item with combo box style and I use this code in WHEN-NEW-RECORD-INSTANCE at the form module level to populate that combo box list:
    DECLARE
         group_id RECORDGROUP := FIND_GROUP('group');
         list_id ITEM := FIND_ITEM('employees.job_id');
         x number;
    BEGIN
    IF NOT ID_NULL (group_id) THEN
              DELETE_GROUP (group_id);
         END IF;
              group_id := CREATE_GROUP_FROM_QUERY ('group','select name,TO_CHAR(id) job from cmn_jobs where job_type_id = 4720 ');
         x := POPULATE_GROUP (group_id);
         POPULATE_LIST (list_id, group_id);
         EXCEPTION
    WHEN NO_DATA_FOUND THEN
    null;
         END;
    That code worked very well and without any problem, but when I change the list item from combo box style to poplist style then the forms give that error:
    FRM-41337: Cannot populat the list from record group
    And an additional null/blanke element appears in the poplist with original element that come from RECORDGROUP.
    So can anyone help me to solve that problem please?

    First, how I can assign a default or initial value DYNAMICALLY to my poplist.Set the default-value to a parameter like :PARAMETER.MYPARAMETER then you can assign the desired default-value to the parameter.
    second, if I have popliste say X for example depend on another poplist say Y ,so when I put the code to populate popliste X on WHEN-LIST-CHANGED on popliste Y and make query then the >forms return FRM-40301 Query caused no records to be retrieved ,but when I have a copy for that code in WHEN-LIST-CHANGED and put it in WHEN-NEW-FORM-INSTANCE at the form >module the form work and returns records, so is it any error or exception in what I did.Can't answer that, you should check :SYSTEM.LAST_QUERY to see why the query does not returnany records.
    At the last, which better to put the code for popliste in PRE-FORM trigger at the form module or in WHEN-NEW-FORM-INSTANCE at the form module.I would use the PRE-FORM-trigger

  • SharePoint: Workflow to retrieve all users and Create list item record for each user

    Hi all,
    My share point site have two Lists as Holidays and MyCalender.
    Actually Holiday is simple non-Calender list with field as Holiday Date, Reason. MyCalender List Calender type list with Person Look-up column and user can see his own record. User of Manager group will declare holiday. This Holiday should get reflected
    on each user 's MyCalender List.[One listitem as holiday date and reason for each user] so everyone can view that record.
    I have requirement as Manager will create one Holiday record and then run single workflow so for all users present in SharePoint Site, one MyCalender List Item record should get created. Is it possible to do using Workflow?? Please help as I didn't get any
    solution for this.. Thanks in advance!

    You don't need one workflow per user when a filtered view can do this for you.  If the manager's list is the parent calendar, I'm assuming that he'll be at least using the person look-up column.
    Whether this feeds through the MyCalendar or stays where it is, you can use the [Me] parameter within the filter on a new view.  This will then return the assigned holiday filtering against the account that is logged in.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Record group query question

    Just wondering if we need to check :system.mode = query or normal in the query for record groups or oracle forms handles it automatically
    Thanks

    No, you should not check System.Mode in a record group query. But then, Forms does not do that either.
    Your question makes me wonder what you are doing... Record groups are usually populated only when you need to see a list of values, or use an LOV to perform an edit.

  • ORA-00904 when use column alias in Record Group Query

    Is it possible to use column aliases in Record Group Queries?
    I have a query that runs fine in SQL*Developer, but gives me runtime errors when I use it as a Record Group Query.
    When I use it as a Record Group Query, the Form compiles, but at runtime I receive the following errors:
    FRM-40502: ORACLE error: unable to read list of values
    when I use Help - Display Error, I see:
    ORA-00904:"CHILDNAME":invalid identifier
    The query is something like this
    select decode(complex stuff here) as "childname" ....
    I've tried it with and without the double quotes surrounding the alias name, and have also tried it without using the "as" keyword.
    I would appreciate any suggestions or insights. I'm using Forms 9.0.4.
    Thanks.

    It looks like this is caused by bug 725059:
    "FILTER BEFORE DISPLAY" DOESN'T WORK IF LOV HAS COLUMN ALIASES (TRIAGE1098)
    My LOV does have the Filter Before Display turned on. Here's the text of the bug:
    IF an LOV is created with column aliases in the select statement, (eg: select ename emp_name from emp) and the LOV property "Filter Before Display" is "Yes", THEN when you attempt to filter the LOV at runtime, (eg: type '%' then press the 'Find' button) the internal WHERE clause that forms sends to the database is: WHERE column_alias LIKE '%%' This is incorrect syntax. A client-side sqlnet trace shows this. The correct syntax should be: WHERE column LIKE '%%' . The incorrect syntax results in no rows returned. However no error is displayed by forms to the user.

  • Frm - 41337 - can not populate the list from record group

    Hi
    I have created a form with 4 combo boxes. And i am trying to populate the 4 combo boxes dynamically.
    Here is my table structure.
    BUS_FUNCTION VARCHAR2(500),
    SEQ NUMBER,
    STEP1 VARCHAR2(500),
    STEP2 VARCHAR2(500),
    STEP3 VARCHAR2(500),
    STEP4 VARCHAR2(500),
    KEYSTEP VARCHAR2(4000),
    OBJ_NAME VARCHAR2(500),
    SME VARCHAR2(50)
    In the fist combo box i am retriving bus_function and second seq and third step1.
    i wrote a trigger when_new_form_instance and i am calling a procedure from the trigger.
    here is my procedure code.
    PROCEDURE fp_get_list IS
    l_sql_text VARCHAR2(2000);
    BEGIN
    l_sql_text := 'SELECT bus_function,bus_function FROM TABS_BUS_FUNC';
    lp_populate_list('BUSFUNC.list22','rgcat2',l_sql_text);
    l_sql_text := 'SELECT TO_CHAR(SEQ),TO_CHAR(SEQ) FROM TABS_BUS_FUNC';
    lp_populate_list('BUSFUNC.BUS_FUNC','rgcat',l_sql_text);
    l_sql_text := 'SELECT step1,step1 FROM TABS_BUS_FUNC';
    lp_populate_list('BUSFUNC.list20','rgcat1',l_sql_text);
    END;
    Now the problem is i can able to get the values fro the first two colums. but the third column values are not populating.
    i am getting an error frm - 41337 - can not populate the list from record group.
    PLease help me in this.
    Thanks in advance,
    Raju

    I got answer
    i write a code in when-new-form-instance
    declare
    v_rg_id RECORDGROUP;
    v_return number;
    v_query varchar2(2000);
    outcome number ;
    begin
    v_rg_id := CREATE_GROUP_FROM_QUERY('RG_LIST','select Dname,To_char(Deptno) deptno from dept');
    v_return := POPULATE_GROUP(v_rg_id);
    POPULATE_LIST('emp.deptno', 'RG_LIST');
    end;
    but remember property of list item must be mapping of others value null and initial value null
    if ur problem not solve then tel me email, i ll send u fmb file

  • List items as grouped elements

    Hi,
    In 'Select List Item' , I want to display list items as grouped elements. Assume that grouping the child items based on its master code.
    Eg: [ Fruits ]
    Apple
    Orange
    Goa
    [ Animals ]
    Tiger
    Lion
    Elephant
    [ Birds ]
    ...... etc
    How can I do it?
    Regards
    Mohan

    Mohan wrote:
    In 'Select List Item' , I want to display list items as grouped elements. Assume that grouping the child items based on its master code.
    Eg: [ Fruits ]
    Apple
    Orange
    Goa
    [ Animals ]
    Tiger
    Lion
    Elephant
    [ Birds ]
    ...... etc
    How can I do it?The select list item must generate HTML <tt>optgroup</tt> elements, via an item plug-in or some other technique, e.g.
    {thread:id=1115902}
    {message:id=4516761}

  • Very urgent..........how to pass a paramter list containing record group as

    hi
    can any one help me , i am getting frm-41214 when i pass a paramter list containing record group as data parameter to run_report_object as parameter, calling report from forms 10g, but when i dont pass the parameter list the report runs displaying no data(as it should do), otherwise it dont run and display the frm-41214
    zulfiqar

    Hi,
    Try using a lexical parameter(&parm_1) for a string of values or a bind parameter(:parm_1) for a single value
    Thanks,
    Kimosabe

  • 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?

  • Using 'like' in record group query

    Hi ,
    (Forms 6i)
    I'm creating a record group dynamically.
    So in when new item trigger for a list item,
    i want to list all names from a table like 'a%';
    query : select name, to_char(id) id from test_name where name like 'a%';
    but i'm not able give single quote(') in the query.
    Is there a way to do that?
    Edited by: Tuts009 on May 9, 2010 1:38 AM

    Hi Arif,
    i'm not giving a% directly in the query, this i'm getiing from what we type in the list , so :list4
    i'm storing it in another string say str and then the query will be
    str := :list4||'%';
    rg_id := Create_Group_From_Query( rg_name,
                               'SELECT name,to_char(id) id from test_name where name like '||str); Now any help?

  • FRM-41337: Cannot populate the list from record group.

    My task is to populate the list after a list changed is triggered in another list item. I have 2 list items, report_type ans subgroup_type. When report type is changed, I have to get the value from it and create a select statement for subgroup_type. Here's what I did in the pre form:
    PROCEDURE INITIALIZE_LIST IS
    BEGIN
    for Preparation status
    DECLARE
    rg_list_id recordgroup;
    rg_name varchar2(20) := 'REC_REPORT_TYPE';
    ret_code number;
    -- the following holds select query from which the lst element are d
    -- derived
    v_select varchar2(300);
    BEGIN
    v_select := 'SELECT description, lookup_code FROM tmx.tmx_lookups '||
                                  'WHERE lookup_type = ''RTV_REPORT_TYPE'' AND enabled_flag = ''Y'' '||
    'ORDER by 1';
    rg_list_id := find_group(rg_name);
    if not id_null(rg_list_id) then
    delete_group(rg_list_id);
    end if;
    rg_list_id := create_group_from_query(rg_name, v_select);
    ret_code := populate_group(rg_list_id);
    populate_list('start.s_report_type', rg_name);
    delete_group(rg_list_id);
    END;
    END;
    and in the s_report_type list change event, here's what I do:
    BEGIN
    DECLARE
    rg_list_id recordgroup;
    rg_name varchar2(20) := 'REC_SUBGROUP_TYPE';
    ret_code number;
    v_select varchar2(300);
    BEGIN
    v_select := 'SELECT description, lookup_code FROM tmx.tmx_lookups '||
                                  'WHERE lookup_type = ''' || :start.s_report_type || ''' AND enabled_flag = ''Y'' '||
    'ORDER by 1';
    rg_list_id := find_group(rg_name);
    if not id_null(rg_list_id) then
    delete_group(rg_list_id);
    end if;
    rg_list_id := create_group_from_query(rg_name, v_select);
    ret_code := populate_group(rg_list_id);
    populate_list('start.s_subgroup_type', rg_name);
    delete_group(rg_list_id);
    END;
    END;
    and the FRM-41337 error is triggered. Please point me out where I missed. Thanks a lot.

    try to change query with this
        'SELECT description, to_char(lookup_code)........and dont delete the group after
    Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • Populate HTML LIST ITEM with a query

    Hello,
    I've a problem,
    I'm building a portlet based on an html form.
    In this forms there are several list items,
    How can I populate an html list item with a dynamic query based on a db table?

    I hope you are looking for something like this
    declare
    v_ret_string varchar2(32767);
    begin
    v_ret_string := ' <TABLE BORDER="1" bordercolor="#0000FF" bgcolor="#FFFFF0">
                   <TR><TD><TABLE BORDER="0" CELLSPACING="3" CELLPADDING="0">
                   <BR>
                        <TR><TD ALIGN=middle><SELECT SIZE="1" NAME="emp_list">
                             <OPTION VALUE="">';
    For get_emp_list In (Select ENAME,EMPNO
    From SCOTT.EMP
              Order by ENAME) Loop
    v_ret_string := v_ret_string || '<OPTION VALUE="'||get_emp_list.EMPNO||'">'||get_emp_list.ENAME;
    End Loop;
    v_ret_string := '</SELECT></TD></TR><TABLE></TABLE>';
    End;
    which uses PL/SQL code to generate the html page.
    Thanks
    -Krishnamurthy

  • FRM-41337: Cannot pop list from record group

    If I update a record from a poplist and try to re-populate the list, i get this error. I've read you need to have a default or other values listed, unless it can accept NULL values. Well, it CAN accept NULL values, and required property is set to NO. I'd appreciate your help.

    On-line help says:
    ADD_LIST_ELEMENT restrictions:
    For a base table list with the List Style property set to Poplist or T-list, Form Builder does not allow you to add another values element when the block contains queried or changed records. Doing so causes an error. This situation can occur if you have previously used DELETE_LIST_ELEMENT or CLEAR_LIST to remove the other values element that was specified at design time by the Mapping of Other Values list item property setting.
    Note: The block status is QUERY when a block contains queried records. The block status is CHANGED when a block contains records that have been either inserted or updated.

  • List Item issue during Query

    Hi,
    I have 2 List Items in my form.
    I loaded the value for List Item in When-New-Form-Instance trigger using ADD_LIST_ELEMENT.
    But i cant query the form.No records are retrieved.
    Can u suggest me
    Regards
    Nithiya.N

    Do you get any error? If not, be aware that oracle only retrieves records which has a matching value in any database-based listitem in the block. Maybe you check the values you assign to your listitem.

Maybe you are looking for

  • Best way to repartition external hard drive to give Time Machine more space

    I have my external 2 TB hard drive segmented into 2 equal 1 TB partitions. The first partition is my time machine back-ups. The second is media files. I also have approx 500GB of storage left on my 1 TB internal Mac HD. I keep receiving an error mess

  • Problem Logging it to Int Rep and Int Dir of SAP XI

    Hi,          I m using SAP XI 3.0, I am maintaing 2 systems, one as server and one as client. In the client system I have installed J2e engine and SAP GUI. I have problem logging in to Integration rep and Int Dir in the Client system. I have no loggi

  • 5.1 w/ SP5 error

    I just installed WebLogic 5.1 with SP5 for research on a company project. It starts fine from the shortcut in Win2k start menu but when I try to start it from the WebLogic Console, it gets these errors and will not start: any ideas? The WebLogic Serv

  • Batch create error /IWCOR/CX_DS_EP_PROPERTY_ERROR/

    Hi All, I am trying to create multiple records using $BATCH, but I am getting below error(I could able to perform READ& QUERY well but not successed with Create/update) HTTP/1.1 500 Internal Server Error Content-Type: application/xml Content-Length:

  • Do I need to upgrade my OS on 8310?

    Hi Its my first post here so go easy if I miss the obvious I've been looking at the OS updrades as a way of reducing/eliminating the number of times my 8310 reboots mid converstation. Having read the boards I have already tried removing the sandisk 1