Apex items not populating in apex 4.0.2

Hi,
I am trying to add this query in a region
SELECT
empno,
APEX_ITEM.HIDDEN(1,empno)||
APEX_ITEM.TEXT(2,ename) ename,
APEX_ITEM.TEXT(3,job) job,
mgr,
APEX_ITEM.DATE_POPUP(4,rownum,hiredate,'dd-mon-yyyy') hiredate,
APEX_ITEM.TEXT(5,sal) sal,
APEX_ITEM.TEXT(6,comm) comm,
deptno
FROM emp
ORDER BY 1
but am not able to see the items in the region it shows some html code instead of that. Please suggest me how to add then
Thanks
Sudhir

Hi,
I have a query like this
select // first query
null "Subject",
NULL "Coherant",
y.year "Year",
m.month "Month",
d.day1 "Day1",
d.day2 "Day2",
d.day3 "Day3",
d.day4 "Day4",
d.day5 "Day5",
d.day6 "Day6",
d.day7 "Day7",
d.day8 "Day8",
d.day9 "Day9",
d.day10 "Day10",
d.day11 "Day11",
d.day12 "Day12",
d.day13 "Day13",
d.day14 "Day14",
d.day15 "Day15",
d.DAY16 "Day16",
d.DAY17 "Day17",
d.DAY18 "Day18",
d.DAY19 "Day19",
d.DAY20 "Day20",
d.DAY21 "Day21",
d.DAY22 "Day22",
d.DAY23 "Day23",
d.DAY24 "Day24",
d.DAY25 "Day25",
d.DAY26 "Day26",
d.DAY27 "Day27",
d.DAY28 "Day28",
d.DAY29 "Day29",
d.DAY30 "Day30",
d.DAY31 "Day31"
from year y,month m, days d
where
y.id = m.y_id and
m.id = d.m_id and
m.id = :P2_MONTH
union all
select // second query
apex_item.text(2,null) "Subject",
NULL "Coherant",
null "Year",
null "Month",
null "Day1",
null "Day2",
null "Day3",
null "Day4",
null "Day5",
null "Day6",
null "Day7",
null "Day8",
null "Day9",
null "Day10",
null "Day11",
null "Day12",
null "Day13",
null "Day14",
null "Day15",
null "Day16",
null "Day17",
null "Day18",
null "Day19",
null "Day20",
null "Day21",
null "Day22",
null "Day23",
null "Day24",
null "Day25",
null "Day26",
null "Day27",
null "Day28",
null "Day29",
null "Day30",
null "Day31"
from dual
This is a union sql query. I need to add item in the second query not in the first so that i can custamize the report based on the requirement.
Can you please suggest me the alternative way of doing this please suggest
Thanks
Sudhir

Similar Messages

  • App Item Not Populated

    Greetings - I've got a problem that only relates to developers, not end users. Apparently, something gets broken behind the scenes, when you log into a workspace as one user, and then access an application as another user. Here's the situation:
    My sample application consists of two pages and one application item:
    • Application item F38195_TEST.
    • Page 101: the login page. Contains a before header process called "Populate App Item", which populates F38195_TEST with the word "Populated".
    • Page 1: Displays the value of F38195_TEST.
    Here are the steps you need to take, to observe the application working correctly:
    • Go to http://apex.oracle.com/pls/otn.
    • Log into workspace chall51_sandbox as "guest", with the password "public".
    • Run application "App Items".
    • Log into the application as "guest", with the password "public".
    • Page 1 will display the following:
    App Item Test
    The word "Populated" should show below
    Populated.
    • Log out and close your browser.
    To observe the problem, bring up the same URL in a new browser session, and log into the workspace the same way as you did above. Log into the application, though, as Guest2, and Public2, rather than Guest and Public. Run the same app, and the output appears as follows:
    App Item Test
    The word "Populated" should show below
    Note that the word "Populated" does not show between the lines.
    It appears that when the workspace user is different from the application user, the login page process that populates the application item is not effective. Debug output shows that it runs, but the application item remains null.
    For what it's worth, if you log out of the application and log back in as guest2 / public2, it works. It's only the initial session that's a problem.
    Of course, the obvious solution is to access the application as the same user you logged into the workspace as, but I thought I'd point this out, in case it's symptomatic of a larger problem in the underlying OAE engine, and in order to ask that if anyone has an explanation, they might satisfy my curiosity.
    Thanks - Chris.

    My problem is that in my real-world application, I need access to the application item at the top of page 101, before authentication runs, as well as for the duration of the session.
    I've experimented with it a bit more, and I've found that the problem actually occurs if both processes (page 101 and post-authentication) set the item to the same value: the item goes to null. Again, though, it only happens if you're logged into the workspace under a different ID than the one you use to log into the application. If the user ID's match, or the processes set the item to different values, you don't get the behavior.
    Please take a look at "App Items 3", in the same workspace referenced above, for illustration. Thanks for all your help!
    -Chris

  • Item not populating from CCM into shopping

    Hi Gurus,
        The Excel file has been uploaded and published successfully into CCM but when the only one line is not getting populated when that item is used in the shopping function the source of supply box is blank and has to be manually populated. Early solution will be rewarded pl.
    Regards,
    Raj

    Hi,
    The field Supplier will be automatically carried to the procurement catalog from the Supplier Catalog, you should ensure the Supplier is a valid vendor in SRM - you can check this by implementing the coding from note 487917 and checking the OCI data in SLG1 for object BCT1.
    Regards,
    Jason

  • Oracle Forms List Items :not populating list Dynamically using select Query

    Hi ,
    I need to create a list item. And the values to be populated in the list are from Database but I'm unable to populate from database.
    Please help me out how to populate the values from database.
    In Property Pallete we have Elements in List under Functional section , In this we have to manually enter the List values but we can't use any Query to Dynamically populate.
    Thanks,
    Kiran Sanga

    When you need to fill a list with the result of a query, you'll have to do it at runtime.
    Andreas has a good blogpost about this.

  • Line Item Field "Assignment" not populating

    I am posting a KR doc. The assignment field in the line item is not populating with the date on the document is being posted in either of the line items, posting key 31 posting to Vendor and posting key 40 posting to an expense G/L account. The assignment field remains empty. I have checked some documents in the other company codes where this field is being populated with the date in the yyyymmdd.
    Please let me know what controls this and how can I make this field populate.

    Th Sory key for the GL for that company code should have the document date as the sort key.... check in FS00

  • Sale Order Item Quantity Not Populating When Create A Sale Order Using BAPI

    I am having a problem when creating a sale order using BAPI
    BAPI_SALESORDER_CREATEFROMDAT2
    Problem is that sale order item quantity field is not populating
    code is as follows
    ORDER_ITEMS_IN-ITM_NUMBER = '0010'.
    ORDER_ITEMS_IN-MATERIAL = '000000000010000262'.
    ORDER_ITEMS_IN-TARGET_QU = 'LB'.
    ORDER_ITEMS_IN-TARGET_QTY = 1.

    Hi,
    Try populating ORDER_SCHEDULES_IN table in the bapi field REQ_QTY.
    Regds,
    Rudra

  • Dynamic Population of List Item Not Working

    My requirement is to have 1 list item that is populated based on the value selected for a second list item. in the when-list-changed trigger of the second list item, i make a call to a procedure (code below). This seems to not like any of the clear_list or populate_list. the list item type is poplist. i set the class to list. if i use populate_list in when-new-form-instance, there's no problem. PLEASE HELP. When can't I populate list using a procedure??
    ERROR: frm-40734 internal error pl sql error occurred
    PROCEDURE Refresh_List IS
    v_rg_name VARCHAR2(40) := 'RGTEST';
    v_rg_id RecordGroup;
    v_sql varchar2(2048);
    problem EXCEPTION;
    status number;
    list_id item;
    BEGIN
         list_id := Find_Item('BLK_TEST.LST_TEST');
    v_sql:='select column_name from sys.all_tab_columns where table_name=''testtable''';
                   v_rg_id := Find_Group( v_rg_name );
                   IF Not Id_Null(v_rg_id) THEN
                             DELETE_GROUP( v_rg_id ) ;
                   End if;
                   clear_list(list_id);
                   v_rg_id := Create_Group_From_Query( v_rg_name, v_sql ) ;
                   status := Populate_Group( v_rg_name );
                   POPULATE_LIST(list_id, v_rg_id);
                   POPULATE_LIST('BLK_TEST.LST_TEST', 'RGTEST'); also tried this.
                   if status <> 0 then
                             raise problem;
                   end if;
              EXCEPTION
                   WHEN problem THEN
                             message('problem.');
                   WHEN others THEN
                             message('tooto');
    END;

    Thanks for the response. I've tried this example too and it still doesn't like the things mentioned in previous post. In addition, it doesn't like SET_RECORD_PROPERTY(:system.cursor_record,'EMP',status,new_status); I get the same sort of error. The form compiles fine though.
    Background on form:
    this form was created to allow users to dynamically build an update statement. On this form are a number of list items and text boxes that are not populated from a database. So the datablock doesn't retrieve values from the database and the only updating that will be done is when the user clicks an "update" button to execute the sql statement that is built. Could this issue I'm having be related to the way i designed my datablock and items? When the user selects an item from one of the list items, the record status goes to "Changed". So I assumed my issue was because of this and thought the set_record_property statement would help...but that is generating the same error. what am i missing? if i look at the index value of the record group after create_group_from_query, it is -1. after populate_group, it is still -1. should it still be -1?? any help is greatly appreciated.

  • Most Popular Items are not populating on lists and libraries

    When I click the Most Popular items icon, the reports always show zeros.  I have been reading that installing OWA has resolved the problem but I need to know if it is REQUIRED to work properly. If anyone has any information on this, please let me know.
    I have not  been able to find solid proof it is a requirement.
    Thanks!

    Hi,
    According to your description, I have met the same issue with you. The Most Popular Items wasn’t recording any views for documents in the document libraries.
    Here is a blog said that only when the documents are viewed in the Office Web App are they recorded for the Most Popular report. But it's always good to test.
    http://nickhurstblog.com/2013/04/30/library-most-popular-items-not-working/
    Besides, here is a similar post, you can use as a reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/71066e40-87cd-4a6b-88fd-d78daa1b858f/most-popular-items-not-working-for-document-libraries
    Best Regards,
    Lisa Chen 
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact 
    [email protected]
    Lisa Chen
    TechNet Community Support

  • How to combine two conditions :  Exists and Item not null ?

    Hello !
    I have a flash chart region that I would like to display only if two conditions are both true.
    The first condition is this one :
    Exists (SQL query returns at least one row) :
    select 1
    from    observatoire.fiche aa, observatoire.activite_faite bb
    where   aa.fiche_id = bb.fiche_id
    and     bb.fiche_id = aa.fiche_id
    AND     bb.activites_id = TO_NUMBER(:P23_ACTIVITES_ID)
    AND     TRUNC(aa.date_activite, 'YYYY') = TRUNC(TO_DATE(:P23_ANNEE, 'YYYY'), 'YYYY')And the second condition would be :
    Item not null :
    P23_ACTIVITES_IDHow to combine these two conditions into one display condition ?
    Thank you .
    Christian

    Hello,
    The issue is that you're doing -
    TO_NUMBER(:P23_ACTIVITES_ID)When you leave the Null return value blank like that, you'll typically see '%null%' used in session state (i.e. it's not actually null). Obviously '%null%' can't be converted to a number, hence the error you're seeing.
    A simple solution would be to make your null return value -1 or some other value that is guaranteed not to be a valid id (and alternative is to convert the %null% to a real null via an App/Page process etc (if you search this forum you'll find a few examples on how to do that). Another alternative is to use a DECODE to detect the '%null%' etc.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Fields not populated in cube

    hi experts,
                       i have one problem i have sales item,and header dso's which i have loaded the data using flat files.when am trying to load to cube some of the fields of header is not  getting populated.when i am loading only header data that time it is showing the data in cube.when i am loading item data also that time some of the fields of header are not populating in cube.i have tried by taking two seperate cubes for header and item and tried to  loading data to multiprovider. but same issue came.for ur reference i am providing screen shots of that. this is multi provider screen shot in this u can observe that division ,region and some fields are not populating data. in local sand box i have done this please help me to resolve this issue.
    header  cube screen shot before loading to multiprovider.
    item cube screen shot before loading to multiprovider.
    regards
    jaswanthi

    How are you "loading" to a MultiProvider? A MultiProvider is merely a "view" on 1 or more InfoProviders, nothing gets loaded in it.
    The screen shot of your MultiProvider shows data of your items InfoCube only... have you filtered on the InfoProvider field? If not, try and filter on your header InfoCube and see whether it shows any data. If not, then there's something wrong with your mappings in the MultiProvider definition.
    It's perfectly normal to have empty fields if you're combining 2 InfoProviders into 1 MultiProvider. If that's not what you want, you should consider an InfoSet (which "joins" data) or model it so that when you're sending item data to a new InfoCube, you "look up" the missing header data in your header data DSO and add it.

  • Delivery schedule line number in sales order is not populated in production

    Hi all,
    i am doing make to order scenario with 20 strategy group. In sales order we r defining the different delivery schedule lines.when i run the MRP and getting the plan orders for all the FG material and semifinished material, the sale order number and sale order item number is getting updated in production order . Beside these two , delivery schedule line number is not populated in production order.
    please give your valuable suggestion .
    i would be highly thankful to u
    Will reward points.
    Regards
    Kumaraguru

    Hi Kumar,
    Some changes done in your PRD server.If yes then contact abap consultant regarding the same.
    Because these type of problem comes when you do transport or changes done in the system.
    Regards,
    Anil

  • Delivery schedule line number in sales order is not populated  in productio

    Hi all,
    i am doing make to order scenario with 20 strategy group. In sales order we r defining the different delivery schedule lines.when i run the MRP and getting the plan orders for all the FG material and semifinished material, the sale order number and sale order item number is getting updated in production order . Beside these two , delivery schedule line number is not populated in production order.
    please give your valuable suggestion .
    i would be highly thankful to u
    Regards
    Kumaraguru

    Hi Kumar,
    Some changes done in your PRD server.If yes then contact abap consultant regarding the same.
    Because these type of problem comes when you do transport or changes done in the system.
    Regards,
    Anil

  • Plant not populating in internal order

    Hi All,
    When we release a serivce order in CRM-Service, system is creating internal order. But it is not populating plant field in internal order. We have done the customizing of linking service organization to plant in CRM. Could you please let me know if there are some other configurations/enhancements to be done to derive plant field for internal order in ECC?
    Regards
    Suresh

    If plant is maintained in Customer-Material Info Master & Customer Master, it will be defaulted in Sales Order.
    But incase of Plant being maintained in Material Master, it is a common practice that it requires to be maintained in Sales Otder. If before entering the Material, Plant is maintained at Header level in sales Order, it will default in Line items, else it is required to be maintained for all Line Item.
    This is Stansdard SAP.
    Regards,
    Rajesh Banka
    Reward points if helpful.

  • Unit Cost is not Populating in Sales Order Line Level for OPM Enabled Org

    Dear All,
    This is to inform you that Unit Cost is not populating in Sales Order Lines. Ideally it should pick from OPM financials, but whenever i am running Cost Update it is throwing error. We need to pull out Unit Cost for Sales Analysis Report. Please suggest on the same ASAP. What are the steps needs be followed to populate the Unit Cost. Please suggest.
    Thanks & Regards,
    Patrick

    Hi
    I think it will pick from PRICE list. Why don't to you try by keeping this item in the mentioned Price list.
    Regards
    Raj

  • Complaint with reference to R/3 Billing Document , Items not getting copied

    Hi,
    I  have implemented BADI CRM_COPY_BADI_EXTERN for pulling billing documnets which is working fine. But when I am creating a credit with refernece to billing doc fetched all other details are getting populated except Product, description into line item level.
    I am using MAPPING_FOR_EXTERNAL_DOC for mapping R/3 values to Web UI fields. However CT_ORDERADM_I table in this method does not getting filled up with item level data as product , description etc.
    I am populating the same and modifying the table in program. However it is not populating the value in Web UI fields.
    Can anyone help as how should I populate item level values?
    Thanks,
    Madhura

    Hi All,
    I have a requirement to display the item details of complaint are created with reference of a billing document in Web UI.
    When a Returns Split is created with reference to a billing document, the item is split into multiple items based on the quantity in the source document. The BAdI definition CRM_COPY_BADI_EXTERN which we implemented for this requirement. This works fine in SAP GUI but i need to replicate the same in Web UI.
    I have implemented the BAdI definition CRM_COPY_BADI_EXTERN in read_data method, check_split_change_alv method is actually spliting the line items based on the quantity. In SAP GUI its works fine but it’s not working in web UI.
    We used a FM CRM_INTLAY_GET_HEADER_GUID to retrieve the header guid when there is call from web UI. But this FM returns zero value for guid. I’m struck up at this point.
    Please suggest how can i replicate the return split in webui too.
    Thanks,
    Deepak

Maybe you are looking for

  • Is this possible? Transfering from one to another...

    Hi, I have two ipod video on my hands: one i have been using for past year or so, the other one is still unopened brand new. Both 30gb. Just wondering if it's possible to somehow have everything i have on the old ipod transffered to the new one. I se

  • Reordering pages: No auto renumbering feature?

    I think I'm missing something here. I've changed the order of a few pages, and it went well. However, the original page numbers are intact, and now out of sequence. Must I manually change all of my page numbers to reflect their new numerical order, t

  • How can I invalidate everything except .gif and .jpg

    Hi I need to invalidate every page except the static objects as gif jpg. Can I create a rule that invalidates everything except gif and jpg. Thanks

  • Asset already depreciated but need to switch it to depreciation by the day

    Hi, If an asset has been depreciated half-way & the user want to switch to depreciation by the day, how can I go..? Should I transfer the asset to another asset which has this depreciation key? Pls Suggest. Rgds, Mercy

  • Search for a word in a string.

    Hello everybody, Could anybody help me how to search for a word in a string ? Example: I have a string as below: String[] weather = {"snow", "rain", "sunny", "temperature", "storm", "freezing"}; And I have a sentence like this: "Today is a sunny day"