Different display types in same column

Hi All,
I though I was being clever, but maybe not...
I have a query which generates a column. I want the column to show a select list from query when the user has update permission for the row, otherwise I want to show the value of the column only.
The code for the column is something like this:
select
case when mycolumn='myval'
then apex_item.select_list_from_query('blah, blah')
else
mycolumn
end multitype_column
This displays the data fine - when the data is editable a select list is displayed, otherwise just the value of the data is displayed. The Tabular Form Element of the Column Attribute for this column is 'Standard Report Column'.
My problem is this:
If the first row of the report doesN'T return a select_list for 'mycolumn', I can't get a return value (the index for the select list (where it exists) is F22) from any of the rows which do appear as select lists.
If however the first row is a select list, i can interrogate apex_application.g_f22(i) and retrieve a value for all rows (again where the select_list exists).
So - firstly is this a correct interpretation? Secondly - any fixes?
Thanks very much
Toby
Message was edited by:
TAP - changed does to doesN'T - hopefully this was understood

Thanks for replying.
Here is the pertinent code. g_04 represents the database field I examine in order to determine whether the select_list_from_query or a straight report value is rendered. I'm asserting that if the first row of the report has '0' in g_04 then I can see all the values in g_f22 for the page. If the first row g_04 is not '0', I can't access g_f22 for any row (even when I can see values in Firefox->Tools->PageInfo->Forms)
DECLARE
   v_selected_UserID        varchar2(1000);
   v_figref                 varchar2(1000);
   v_selected_wr            varchar2(1000);
   v_item_id                varchar2(1000);
   v_session_fcs            varchar2(1000);
   v_FIGSTAT                varchar2(1) ;
   v_WR_raw                 varchar2(1000);
   l_cks                    varchar2 (1000) ;
   slovs                    varchar2 (1000) ;
   current_work_request_id  varchar2 (1000) ;
   current_reserved_by      varchar2 (1000) ;
   current_revision_status  varchar2 (1) ;
   dbref                    varchar2 (1000) ;
   gf21_count               number ;
   i                        number :=0 ;
BEGIN
     FOR i IN 1 .. apex_application.g_f21.COUNT /*g_f21 is the user field - always a select list */
   LOOP
   v_selected_UserID        :='';
   v_figref                 :='';
   v_selected_wr            :='';
   v_item_id                :='';
   v_session_fcs            :='';
   v_FIGSTAT                :='';
   v_WR_raw                 :='';
   current_work_request_id  :='';
   current_reserved_by      :='';
   current_revision_status  :='';
      v_selected_UserID     :=   apex_application.g_f21(i); /*USER ID */
      v_figref                      :=   apex_application.g_f01(i); /*Figure Ref */
      v_WR_raw                :=   apex_application.g_f04(i) ; /* Raw Work request ID */
      /*Check if already reserved by examining raw work request ID (g_04)- if so g_f22 will not exist */
      if  v_WR_raw = '0'
      then
        v_selected_wr :=  apex_application.g_f22(i);
        insert into test_table (f1) values ('select list present') ;
        commit;
     else
        v_selected_wr :=  apex_application.g_f04(i);
        insert into test_table (f1) values ('select list not present') ;
        commit;
      end if ;                            
   END LOOP;
END;

Similar Messages

  • I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    Hi Wayne,
    Thank you for this response.  I have tried this but when I start enterring $ amounts some, such as $6.00, go in OK others such as $4.00 appear as a date ie 4 Oct 12.  
    Kind regards
    Paul

  • Explain me briefly about evaluation order.As per my knowledge it show data type order.but I have different data type in same diemension ex:account- acc_001 is smart list data type.account-ac_002 is percentage.So fot this i will accont dim in evaluation or

    Explain me briefly about evaluation order.As per my knowledge it show data type order.but I have different data type in same dimension ex:account->acc_001 is smart list data type.account-ac_002 is percentage.So fot this i will accont dim in evaluation order.What going can any one explaining brifly ?

    2786712 wrote:
    thanks John for reply.If you dont mine can you explain clearly with example and screenshot.
    @John: You got a task
    Here you go: Hyperion Planning and More...

  • Can we have different output types for same document?

    Hi,
    Can we have different output types for same doucument.if yes plz describe the steps to perform it
    Thanks

    Hi,
    Generally you can use same out put type for the different document types of PO. You can create different out put types for the same PO, in case you need different layouts that is different forms like MEDRUCK. Please refer below link to create out types . If you want that PO as fax or e-mail can use same out put type .Thanking you.
    http://www.sap-img.com/materials/purchasing-tips.htm

  • Different valuation types with same vendor

    Hi,
    I have a senario as follows:
    I am procuring a material say HNB1084 ( Fuel pump ) from a Vendor V1.
    The HNB1084 can be supplied at two states superfinish & Standard buffing.
    The cost of superfinish is Rs. 150/- whereas that of standard buffing is Rs.100/-
    We dont want to have two different part number for this case.
    So we had configured the split valuation in such a manner that the super finish with valuation type V1 & the Standard buffing with valuation type V2.
    Now my problem is how to maintain info records for this sceario with the same material, vendor but with different valuation type.
    Pl expedite.
    Regards,
    R. Dillibabu.

    Manish,
    Are you sure that we can create two different inforecord for the different valuation type? The reason for my concern is we can create only one inforecord for Material , vendor and pur org combination.
    As I know, we can put only one valuation type in Pur org data.
    Regards,
    Arif Mansuri

  • Sum two different types in same column

    Hi I have the below as sql output.
    TYPE SUM(UPDATE_COUNT)
    Legis 93
    Acds 43
    Updates 41
    Multibases 345
    but i want updates to be displayed as Sum of updates and Multibases. It should be like the below.
    Updates 386
    the query i used for the first output is
    SELECT type, SUM(Update_Count) FROM Scope1 where type in ('Updates','Multibases','DAIS','Acds','Legis','LegAll') and (RECVD_DATE >='04/02/2012' and RECVD_DATE <='11/30/2012') group by type
    please help me how do i get the second output.
    Thanks

    I suspect you just need to provide an appropriate format mask, i.e.
    SQL> select to_char(7, '999999999.999' ) from dual;
    TO_CHAR(7,'999
             7.000
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(17.2, '999999999.999' ) from dual
    SQL> /
    TO_CHAR(17.2,'
            17.200Justin

  • GATP/ATP Check for Different Order Types for same material

    Hi :
    I have a material code X for which 2 different type of Sales Order (Say A and B )needs to be created.
    For Sales Order Type A the atp check needs to be done in APO through GATP for material code X.
    For Sales Order Type B the atp check needs to be done in SAP R/3 ECC 6.0 through availabilty check functionality for same material code X.
    It is not possible to create seperate material codes to carry out atp/gatp check seperately in R/3 and in APO.
    In real time the atp and cumulative atp position should be same in R/3 and in APO.
    Please let me know solution for this issue.
    With Regards
    Ashish Gupta

    Hi Ashish,
    Can you share with us as to how you were able to solve this issue. I have a similar issue like yours and I am totally clueless as to what needs to be done..
    My scenario goes this way:
    I have to modify the Schedule line dates for a GATP material according to a newly created date which I calculate based on the Route Schedule id (VL51, VL52) and display the same in the Sales Order schedule line items.
    Also can I get a new set of schedule line dates from the APO system for a date which I calculate based on the Goods Issue date - VALW-AULWE in any exit using a FM or a BAPI?? so that I can get these dates and populate the same in the Sales Order Schedule line??
    Thanks in advance,
    Susanth

  • Different calculations in the same column.

    Hi everyone,
    Picture a spreadsheet with the following columns: column A is an unique identifier, columns B to G have different sums of money for every unique identifier in A. You are asked to provide a result in column H for every identifier using columns B-G as input. However, the formula needed for calculating varies from identifier to identifier -for example, the formula for id. 1 is column B + (column C * column D), the formula for id 2 is avg(column C+column F) and so on-.
    In a common spreadsheet is easy: you just write the formula in the column H's cells.
    Can this be accomplish with pl/sql sql -no matter if it needs dynamic sql to work- or pure old sql?
    I've been trying to find a way and, so far, MODEL clause seems to be the only answer -not the best, the simpler o more complex: the only answer- (something I was eagerly waiting because I want to give it a try). However I would like to know if somebody can suggest a different path before going that way.
    Thanks in advance for your time and valuable suggestions.
    Mariano.

    If I understand correctly CASE or DECODE should work.

  • Running 2 different displays on the same Mac Pro2x 2.66

    Hi folks.
    this is the graphics card that I have:-
    Chipset Model: NVIDIA GeForce 7300 GT
    Type: Display
    Bus: PCIe
    Slot: Slot-1
    PCIe Lane Width: x16
    VRAM (Total): 256 MB
    Vendor: NVIDIA (0x10de)
    Device ID: 0x0393
    Revision ID: 0x00a1
    ROM Revision: 3008
    I understand that I can run 2 displays - is that right?
    I use final cut and was hoping to run my 23in cinema display and a basic SD sony CRT monitor alongside for colour correction. I don't know if this is possible. I can't afford a new monitor, so suggestions in that direction won't help me (unfortunately!). I only have the Apple DVI to video adaptor right now as a connection into the sony monitor. Am I barking up the wrong tree?
    Thanks
    Dom

    Hi Dom-
    Welcome to Discussions!
    Yes, you can run two monitors with your current graphics card. A Cinema Display, and your Sony, should also be no problem.
    So, you have the Sony connected to the DVI to VGA adapter that came with your Mac Pro? Then, all you need to do is connect the Cinema Display to the other DVI port. There may be an actual physical problem disallowing the second DVI connection, which is remedied with another adapter, the DVI extender , which you should have received with the computer.

  • Multiple SUs specifing different link types consuming same service

    Consider, SU1 and SU2 are deployed in C1 as part of SA1 and SA2 respectively.
    SU1 consumes S1,E1,"hard"
    SU2 consumes S1,E1,"soft"
    Now, C1 creates a ME specifying Address=<S1,E1> . The NMR doesn't know if C1
    is "working on behalf of" SU1 or SU2. How does it then decide what value of
    Link Type to use for routing the ME?
    [SU=Service Unit; C=Component; SA=Service Assembly; S=Service Name; E=Endpoint N
    ame; ME=Message Exchange]

    I've run this past the reference implementation team, since they are the experts in these types of JBI behaviours. My previous answer wasn't quite right.
    The RI will accept a link-type only for connections that have no previous like-types associated with them. An attempt to change an already defined link type results in the new link type being rejected.
    If the SU associated with an accepted link-type definition is stopped, the link-type definition is erased.
    Generally, component configuration management tools should be aware that the presence of multiple type definitions of the same connection indicates problems with the tool. Connection types should be consistent across the component., regardless of which SU is responsible for using the connection.

  • How can I give different Editors in the same column for the jTable?

    I am having a JTable with 2 columns and 10 rows. In the 2nd column, for the first 2 rows
    I need to show JCheckBox, for nect 2 JComboBox and for remaining JTextField as the editor.
    How can I do this. Thanks in Advance.

    Remember, the parent class of a cell renderer does NOT have to be a Component itself. Most do simply because the end result of the getCellRenderer call is the component itself.
    Create 3 cell renderers, one based off of the checkbox, one based off the combobox, one based off of Object. The Object based one will hold instances of the other two renderers and will be the actual renderer supplied to the JTable. When called, based on the row, it will forward the call to the to the appropriate renderer and return the result of the call.
    Technically, the internal components do not NEED to be renderers themselves, but doing so makes it a lot easier to test them independently of the combined renderer.

  • Multiple Display Types in a single column

    I have a situation where I have to display a bunch of attributes for a customer. Each attribute can have a different type, Text, Dropdown, Date etc and that information is stored in a table.
    I was able to use apex_item to display the different display types based on the type of attribute.
    So the layout of the form has 2 columns, column 1 is the name of the attribute and column 2 is the value of the attribute (displayed as the various types of date, text, dropdown etc) However, I am having an issue with the Date popups. When I select a date it always goes into whatever date is listed first. No sorting is going on in the select or the report.
    I'm guessing my issue has to do with displaying different display types in the same column? If that is true, how should I change my approach to this problem? I want all the attributes on a single page, so is my only option to have each attribute in a different region?
    Thanks,
    -- Johnnie

    Denes,
    OK thanks for the heads up, let me try to clarify.
    My problem is that I have multiple date popups on the same form. When I pick a date for any of the date popups, it always updates the first date popup field on the form. I stated there was no sorting at all because this thread indicated that sorting could cause this issue:
    DATE_POPUP
    Another hit for this issue was here:
    Re: HTMLDB_ITME.DATE_POPUP problems
    This suggested that having multiple data types in the same column (which is what I am doing) is not supported, but this is an old thread.
    My form will be a manual tabular form. I need to display a list of attributes, however some are freeform text, some are SQL LOV dropdowns, and some are date popups. Right now they are all displayed in the same column. Could this be causing my date popup issue? If so what alternatives do I have?
    Screenshot of my form here: http://johnniebillings.googlepages.com/outlook.jpg
    Hope that clears up the issue I am having.
    -- Johnnie

  • Multiple values from same column in diffetent columns in same row??

    Hi all,
    I am wondering how you can display different values from the same column into different columns on same row. For example using a CASE statement I can:
    CASE WHEN CODE IN ('1', '3') THEN COUNT( ID) END as "Y"
    CASE WHEN CODE NOT IN ('1', 'M') THEN COUNT( ID) END as "N"
    Yes this will produce two columns needed but will also produce two separate records and null values for the empty's.
    Any ideas?
    Thanks

    It's not clear what you want.
    Can you post some examples as described in the FAQ: {message:id=9360002}
    As my first guess, I would think you're looking for something like...
    SQL> select * from emp;
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17-NOV-1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03-DEC-1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    14 rows selected.
    SQL> select count(case when deptno in (10,20) then deptno end) as deptno_10_20
      2        ,count(case when deptno > 20 then deptno end) as deptno_30plus
      3  from emp;
    DEPTNO_10_20 DEPTNO_30PLUS
               8             6

  • Received and Issued quantity in same column in PLD.

    Hello All,
    I've created PLD for Inventory Valuation method, the problem is both the received quantity and issued quantity are display in the same column.
    But I want it in different columns, that is received quantity in one column and issued quantity in another column. Please suggest how to rectify it in the PLd.
    Thanks,
    Pratheeviraj

    Hi Pratheeviraj,
    In the PLD, create 2 formula field in the repetitive area -
    1. Field_141 > 0
    2. Field_141 < 0
    where Field_141 refers to the Quantity field.
    3. Link the Quantity field to formula field 1 above. This way, the quantity field will show only the >0 quantity
    4. Duplicate the quantity field. Set it as a separate column and link it to the <0 formula field.
    Now this column will show qty > 0
    Rename the column headings acc.
    Hope this helps.
    Regards,
    Hamsa

  • Two prompts on the same column

    Hi Experts,
    I am trying to define two different prompts (and associate them to two different presentation variables) on the same column. However, when I display the 2 prompts on the same dashboard page, whenever I select a value for the first prompt, the same value is automatically selected for the second prompt.
    Is this normal behavior? How can I do to capture two separate values?
    Thanks,
    Guillaume

    Hi Stijn,
    Thanks for your quick reply.
    I think that's what I have done. I have 2 prompts (Prompt1, Prompt2) on the same column, and respectively associated with presentation variables Var1 and Var2.
    In the request, I refer to '@{Var1}' and '@{Var2}' in my filters. On the dashboard page, I display Prompt1 and Prompt2. But the moment I select a value for Prompt1 and click 'Go', the same value is assigned to 'Prompt2' (and thus to Var2). And if I select a value in Prompt2 and click 'Go', again that same value is selected in Prompt1.
    Bottom line, it looks like a dashboard prompt defined on a specific column can only have one value. Is this correct? And if so, how can I capture 2 different values for the same column and use them as parameters/variable in a request?
    Thanks,
    Guillaume

Maybe you are looking for

  • Latest iTunes 10.1.1 for Windows 64-bit NOT recognizing iPhone 4...***?!

    Hey All, My iPhone 4 is not being recognized by my brand new PC laptop - Dell Studio 1558 with Windows 7 (64-bit). Each time I attempt to synch the iPhone 4 with the PC, I get the same error message below: "This iPhone cannot be used because the requ

  • A communication error occurred. Printing will be stopped

    A communication error occurred. Printing will be stopped error occurred when trying to print (activex printing) the crystal reports in Dotnet using webforms. The problem occurs when <Session state Cookieless="true"> is assigned in web.config.  Report

  • MobileMe toolbar in Safari

    My work Mac running Safari 4.0.4 (Leopard 10.6.2) is having issues displaying the MobileMe toolbar. My two home Macs, both running Snow Leopard 10.6.1 do not have this issue. All the icons in the upper-left hand corner are not visible, except for the

  • I Love Apple TV

    I just got an ATV last night. Installation was a snap - took like 2 minutes. Hooked it up via HDMI to my Phillips 37" LCD HDTV. Plugged in an optical line to my Denon 1801 AVR. Connected to my wireless network, then to my iMac easily. I encountered n

  • How can I delete the gap tool from the tools panel?

    I find it useless and I want the type tool where it has always been. I'd like the pallets to be layed out like indsign CS3. Thank You.