DECODE QUESTION

I have 4 columns that I want to test for the existance of a value greater than 0 in order of last to first and then return the value of the first column found that has a value > 0.
I have columns discount_2,discount_1,supplier_2 and supplier_1. When I try to decode these columns it will return a value when there is a value in discount_1 or 2 but not when there is not a value in discount_1 or 2 and there is a value in supplier_1 or 2.
My decode statement looks like:
DECODE(DISCOUNT_2,NULL,DISCOUNT_1,
DECODE(DISCOUNT_1,NULL,SUPPLIER_2),SUPPLIER_1) AS "ORIG_COST"
Will the decode work in this example or would CASE work better and what would it look like?

Hi,
[email protected] wrote:
Yes this worked well an is more legible than the COALESCE a glance.
ThanksGlad to help!
Be aware that
CASE
     WHEN  discount2 > 0     THEN discount2
     WHEN  discount1 > 0     THEN discount1
     WHEN  supplier2 > 0     THEN supplier2
     WHEN  supplier1 > 0     THEN supplier1
ENDis NOT the same as
COALESCE ( discount2
      , discount1
      , supplier2
      , supplier1
      )if any of the values are less that or equal to 0.

Similar Messages

  • Base64 encode decode question

    Hi
    I use the auclair base64 class to encode and decode base64 locally and it works great.
    But when I send the string to my server and back (aspx), I cannot decode it I have the 2030 error from flash.
    When I compare the encoded string from both end they look the same.
    I make sure it is fully loaded before attempting the decode.
    Is this a common bug or I'm I wrong somewhere?
    Thanks
    I use the latest air.

    The -d switch on the openssl base64 command enables debugging; it's the short version of the --debug switch.  Probably not what you're after, either.  The -D switch would be more typical, that's the short version of --decode switch, and probably what you had intended.
    The -i (--input) and -o (--output) switches allow you to specify input and output files, which is one way to pass a whole lot of data into that command.
    Do you have an example of some of the text that you're working with?

  • Simple decode question

    I got a table called customer_issue_tab which has a column called "IS_AUTH".
    If the value of "IS_AUTH" is true then i shoudl display the row else I should check the status of the "CUST_ORDER_TAB" and if the status = "released" then display the row.
    How do i put these into a select stmt using a DECODE function
    code sample would be ideal
    Thanks
    Parsh
    Edited by: [email protected] on Jul 6, 2009 9:28 AM

    Hi,
    The answer to "How can I ... using DECODE?' is always "Don't use DECODE." If you have to ask, then it's too complicated.
    CASE is the most common alternative to DECODE.
    If you wanted to use the results in a WHERE clause, why not use the conditions in a WHERE clause, without DECODE?
    Something like this, perhaps:
    {code}
    WHERE     is_auth = 'TRUE'
    OR     EXISTS ( SELECT 1
              FROM     cust_order_tab
              WHERE     status = 'released'
              AND     order_no = customer_issue_tab.order_no
    {code}
    If you need help, post a little sample data, and the results you want from that data.

  • DVD decoder question

    The majority of DVD decoders are available online for download. Problem is the computer I want to install the decoder onto does NOT have the internet. Could I purchase a physical CD with a DVD decoder on it or maybe download the DVD decoder on a computer with the internet then burn it to a CD?
    Suggestions.
    Thanks
    Points up for grabs

    Certainly .. I take it that you are backing up a DVD you already own? If you need to "decode" a DVD, use Mac The Ripper.
    http://www.mactheripper.org/
    You can then make a burnable folder (right click on desktop or ctrl+click and choose new burn folder). Place the downloaded .dmg file in this folder. Double-click on the folder and select Burn. Insert a blank CD-Rom and you're off!
    HTH-Gary
    Note: Don't delete the original .dmg file until after the burn. You will be placing an alias to the original file in the burn folder.

  • Photoshop 12.0 Camera Raw Updates never download. Any ideas?

    Trying to download the Camera Raw update for Photoshop 12.0.  No matter how many times I quit and re-try, the updates download but never complete the installation process.  This is common to all my Adobe products, so I'm guessing it's the updater. In the progress bar I can see the downloads taking place, but at the end of the process the updater gives me the message> " [product name]. There was an error downloading this update. Please quit and try again later.
    No amount of quitting and restarting etc has any impact.
    I would prefer not to have to uninstall lightroom etc so I've held off doing that in the hopes there's an easier way.
    Is this just me or do others have this problem too?
    Photoshop 12.0
    iMac early 2014 3.4Ghz, 8GB RAM, OS 10.9.5.

    I’d suggest posting this sort of issue in the Downloading and Installing forum: https://forums.adobe.com/community/download_install_setup
    I’ve seen Adobe support people respond to things in that forum during daylight hours in the US, or you might try just starting a Chat session indicating you’re having issues installing Elements (or maybe Photoshop) by going to adobe.com, clicking on Menu then choosing Learn and Support and jump through the hoops to narrow down what you’re having an issue with, then click Still Need Help and choose Chat.
    The Adobe Camera Raw forum is for the PS plug-in and perhaps general raw-decoding questions not specific to a product.
    Not for either Lightroom or “Photoshop 12” issues.  By “Photoshop 12” do you mean Photoshop Elements 12 (PSE12) or Photoshop CS5 which is also known as Photoshop 12?

  • Transposing column 1 data as columns and column 2 data as records

    Hi Sirs,
    I have a table having data in the form
    Present data format          
    Interview_no     Question     Answer
    1     Q1     A1.1
    1     Q2     A1.2
    1     Q3     A1.3
    1     Q4     A1.4
    1     Q5     A1.5
    1     Q6     A1.6
    1     Q7     A1.7
    2     Q1     A2.1
    2     Q2     A2.2
    2     Q3     A2.3
    2     Q4     A2.4
    2     Q5     A2.5
    2     Q6     A2.6
    2     Q7     A2.7
    3     Q1     A3.1
    3     Q2     A3.2
    3     Q3     A3.3
    3     Q4     A3.4
    3     Q5     A3.5
    3     Q6     A3.6
    3     Q7     A3.7
    4     Q1     A4.1
    4     Q2     A4.2
    4     Q3     A4.3
    4     Q4     A4.4
    4     Q5     A4.5
    4     Q6     A4.6
    4     Q7     A4.7
    what I need is to change it into
    Required format                                   
    Interview_no     Q1     Q2     Q3     Q4     Q5     Q6     Q7
    1     A1.1     A1.2     A1.3     A1.4     A1.5     A1.6     A1.7
    2     A2.1     A2.2     A2.3     A2.4     A2.5     A2.6     A2.7
    3     A3.1     A3.2     A3.3     A3.4     A3.5     A3.6     A3.7
    4     A4.1     A4.2     A4.3     A4.4     A4.5     A4.6     A4.7
    I am sorry to use that much of space but I think this was the best way to ask the problem. Can we do this using SQL only or we need to go for Pl/Sql I have tried writing a procedure but can't get what eactly I want. I also serched on the net there are a few articles on transposing but they didn't help a lot.
    Please help me with the code.
    Thanks & Regards

    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 1 as interview_no, 'Q1' as question, 'A1.1' as answer from dual union all
      2  select 1, 'Q2', 'A1.2' from dual union all
      3  select 1, 'Q3', 'A1.3' from dual union all
      4  select 1, 'Q4', 'A1.4' from dual union all
      5  select 1, 'Q5', 'A1.5' from dual union all
      6  select 1, 'Q6', 'A1.6' from dual union all
      7  select 1, 'Q7', 'A1.7' from dual union all
      8  select 2, 'Q1', 'A2.1' from dual union all
      9  select 2, 'Q2', 'A2.2' from dual union all
    10  select 2, 'Q3', 'A2.3' from dual union all
    11  select 2, 'Q4', 'A2.4' from dual union all
    12  select 2, 'Q5', 'A2.5' from dual union all
    13  select 2, 'Q6', 'A2.6' from dual union all
    14  select 2, 'Q7', 'A2.7' from dual union all
    15  select 3, 'Q1', 'A3.1' from dual union all
    16  select 3, 'Q2', 'A3.2' from dual union all
    17  select 3, 'Q3', 'A3.3' from dual union all
    18  select 3, 'Q4', 'A3.4' from dual union all
    19  select 3, 'Q5', 'A3.5' from dual union all
    20  select 3, 'Q6', 'A3.6' from dual union all
    21  select 3, 'Q7', 'A3.7' from dual union all
    22  select 4, 'Q1', 'A4.1' from dual union all
    23  select 4, 'Q2', 'A4.2' from dual union all
    24  select 4, 'Q3', 'A4.3' from dual union all
    25  select 4, 'Q4', 'A4.4' from dual union all
    26  select 4, 'Q5', 'A4.5' from dual union all
    27  select 4, 'Q6', 'A4.6' from dual union all
    28  select 4, 'Q7', 'A4.7' from dual)
    29  -- END OF TEST DATA
    30  select interview_no
    31        ,max(decode(question,'Q1',answer)) as Q1
    32        ,max(decode(question,'Q2',answer)) as Q2
    33        ,max(decode(question,'Q3',answer)) as Q3
    34        ,max(decode(question,'Q4',answer)) as Q4
    35        ,max(decode(question,'Q5',answer)) as Q5
    36        ,max(decode(question,'Q6',answer)) as Q6
    37        ,max(decode(question,'Q7',answer)) as Q7
    38  from t
    39  group by interview_no
    40* order by interview_no
    SQL> /
    INTERVIEW_NO Q1   Q2   Q3   Q4   Q5   Q6   Q7
               1 A1.1 A1.2 A1.3 A1.4 A1.5 A1.6 A1.7
               2 A2.1 A2.2 A2.3 A2.4 A2.5 A2.6 A2.7
               3 A3.1 A3.2 A3.3 A3.4 A3.5 A3.6 A3.7
               4 A4.1 A4.2 A4.3 A4.4 A4.5 A4.6 A4.7
    SQL>

  • Question regarding decode function.

    Hi friends,
    I have a question regarding using decode.
    I'm try'g to explain my problem using emp table.
    Can you guys please help me out.
    For example consider emp table, now i want to get all manager id's concatenated for 2 employees.
    I tried using following code
    declare
    v_mgr_code  number(10);
    v_mgr1      number(4);
    v_mgr2      number(4);
    begin
    select  mgr into    v_mgr1
    from    scott.emp
    where   empno = 7369;
    select  mgr into    v_mgr2
    from    scott.emp
    where   empno = 7499;
    select v_mgr1||'-'||v_mgr2 into v_mgr_code from dual;
    end;now instead of writing 2 select statements can i write one select statement using decode function ?
    Edited by: user642856 on Mar 8, 2009 11:18 PM

    i don't know wheter your looking for this or not.if i am wrong correct me.
    SELECT Ename||' '||initcap('manager is ')||
    DECODE(MGR,
            7566, (SELECT Ename
                    FROM Emp
                    WHERE Empno = 7566),
            7698, (SELECT Ename
                    FROM Emp
                    WHERE Empno = 7698),
            7782, (SELECT Ename
                    FROM Emp
                    WHERE Empno = 7782),
            7788, (SELECT Ename
                    FROM Emp
                    WHERE Empno = 7788),
            7839, (SELECT Ename
                    FROM Emp
                    WHERE Empno = 7839),
            7902, (SELECT Ename
                    FROM Emp
                    WHERE Empno = 7902),
            'Do Not Know')  Manager from empor
    SELECT Ename||' '||initcap('manager is ')||
    DECODE(MGR,
            7566, (SELECT empno
                    FROM Emp
                    WHERE Empno = 7566),
            7698, (SELECT empno
                    FROM Emp
                    WHERE Empno = 7698),
            7782, (SELECT empno
                    FROM Emp
                    WHERE Empno = 7782),
            7788, (SELECT empno
                    FROM Emp
                    WHERE Empno = 7788),
            7839, (SELECT empno
                    FROM Emp
                    WHERE Empno = 7839),
            7902, (SELECT empno
                    FROM Emp
                    WHERE Empno = 7902)) manager
    from empEdited by: user4587979 on Mar 8, 2009 9:52 PM

  • Decode Fucntion Question

    Hi,
    I am trying to run this select query below and the IF-THEN-ELSE statement is not working... I am basically trying to update the CUSTOMER.CUST_OPT_IN_RENTAL_IND column with 'N' flag to 'Y' WHERE cust_classif_tr3_FULL_NM ='VIP Program'
    and CUST_OPT_IN_RENTAL_IND ='N'
    and CUST_EMAIL_ADDR_IND = 'Y'
    AND CUST_STAT_TR2_FULL_NM='Active' to be included in the query below. can anyone help please?
    SELECT
    CUSTOMER.CUSTOMER_SSKEY CUSTOMER_sskey,
    TO_CHAR(( CUSTOMER.DATE_MODIFIED ),'MM/DD/YYYY') date_modified,
    NVL(( CUSTOMER.SRC_CUST_ID ),( 'UNKNOWN' )) SRC_CUST_ID,
    NVL(( CUSTOMER.EXTNL_CUST_ID ),( 'UNKNOWN' )) EXTNL_CUST_ID,
    NVL(( TO_CHAR(( CUSTOMER.LAST_UPDATE_DT ),'MM/DD/YYYY') ),( '01/01/1900' )) LAST_UPDATE_DT,
    NVL(( CUSTOMER.SUB_CONTNT_CD ),( 'UNKNO' )) SUB_CONTNT_CD,
    NVL(( CUSTOMER.SUB_CONTNT_NM ),( 'UNKNOWN' )) SUB_CONTNT_NM,
    DECODE((CUST_EMAIL_ADDR_IND ),( 'N' ),( '-')
    , ( 'Y' ), ( 'EPITEST'|| LPAD(MOD(ROWNUM,100),3,'0')||'@INTERVALINTL.COM')
    ) email_address,
    IF CUSTOMER.CUST_OPT_IN_RENTAL_IND :='N' THEN result :='Y';
    ELSIF CUSTOMER.CUST_OPT_IN_RENTAL_IND :='N' THEN result := 'VIP Program' cust_classif_tr3_FULL_NM;
    ELSIF CUSTOMER.CUST_OPT_IN_RENTAL_IND :='N' THEN result := 'Y' CUST_EMAIL_ADDR_IND;
    ELSIF CUSTOMER.CUST_OPT_IN_RENTAL_IND :='N' THEN result := 'Active' CUST_STAT_TR2_FULL_NM;
    ELSIF
    END IF;
    NVL(( CUSTOMER.EMAIL_FORMAT_PREF ),( 'UNKNOWN' )) email_format_pref,
    NVL(( TRUNC( CUSTOMER.EMAIL_UNDELIVERABLE_COUNT ) ),( -1 )) email_undeliverable_count,
    NVL(( CUSTOMER.EMAIL_HTML_CAPABILITY ),( 'UNKNOWN' )) email_html_capability,
    NVL(( CUSTOMER.EMAIL_UNSUBSCRIBE ),( 'UNKNOWN' )) email_unsubscribe,
    NVL(( CUSTOMER.CUST_ID ),( 0 )) CUST_ID,
    NVL(( CUSTOMER.ONLINE_PROFILE_FIRST_NAME ),( 'UNKNOWN' )) ONLINE_PROFILE_FIRST_NAME,
    NVL(( CUSTOMER.ONLINE_PROFILE_LAST_NAME ),( 'UNKNOWN' )) ONLINE_PROFILE_LAST_NAME,
    NVL(( CUSTOMER.GOLD_BILL_TYPE_TR1_CD ),( 'UNKNO' )) GOLD_BILL_TYPE_TR1_CD,
    NVL(( CUSTOMER.GOLD_BILL_TYPE_TR1_FULL_NM ),( 'UNKNOWN' )) GOLD_BILL_TYPE_TR1_FULL_NM,
    NVL(( CUSTOMER.GOLD_BILL_TYPE_TR2_CD ),( 'UNKNO' )) GOLD_BILL_TYPE_TR2_CD
    FROM
         CUSTOMERSTAGE CUSTOMER
    Thanks,
    Soph

    Hi, Soph,
    Welcome to the forum!
    Whenever you hav a question, post a little sample data (CREATE TABLE and INSERT statments) and the resutls you want from that data.
    In the case of a DML problem (such as UPDATE), the sample data should show what the tabels are like before the change, and the reuslts will be the contents of the changed table after it.
    Always say what version of Oracle you're using.
    Without that, people will still try to help you as much as they can, but that won't be much.
    IF-THEN-ELSE is PL/SQL. You can't use PL/SQL statements in the middle of a SQL staement, such as SELECT, even if the SQL statement is being doen within PL/SQL.
    Instead of IF-THEN-ELSE, you can use CASE in SQL, or, in some special situations, DECODE.
    Here's an example of using CASE:
    Say you have a column in your table called cust_opt_in_rental, and it could have the values 'N'. 'N1', 'N2' or 'N3'.
    You want to produce a column in your result set called result, which will be derived from cust_opt_in_rental.
    If cust_opt_in_rental is 'N', then result should be ''Y'
    If cust_opt_in_rental is 'N1', then result should be 'VIP Program' followed by the column cust_classif_tr3_FULL_NM
    If cust_opt_in_rental is 'N2', then result should be 'Y' followed by the column CUST_EMAIL_ADDR_IND
    If cust_opt_in_rental is 'N3', then result should be 'Active' fololowed by the column CUST_STAT_TR2_FULL_NM
    You can do that using CASE like this:
    SELECT  CASE     customer.cust_opt_in_rental_ind
              WHEN  'N'   THEN  'Y';
              WHEN  'N1'  THEN  'VIP Program '  || cust_classif_tr3_full_nm
              WHEN  'N2'  THEN  'Y '         || cust_email_addr_ind
              WHEN  'N3'  THEN  'Active '       || cust_stat_tr2_full_nm
         END             AS result
    FROM     ...This is one situation where DECODE would work as well.

  • DECODE SQL Question.

    Hello all -
    I'm trying to use the DECODE function in a SQL statement I'm building but what I'm trying to do, I've never done before. Below is the portion that I'm struggling with in that I'm receiving an error message but can't understand why I am as all parenthesis have been accounted for. Any help would be greatly appreciated as I have run out of options.
    SELECT
    DECODE(golfer1_score - 148, (golfer1_score - 148 < 0), (golfer1_score - 148) * -1, golfer1_score - 148) golferdiff1
    FROM......
    DECODE(golfer1_score - 148, (golfer1_score - 148 < 0), (golfer1_score - 148) * -1, golfer1_score - 148) golferdiff1,
    ERROR at line 1:
    ORA-00907: missing right parenthesis
    (NOTE: The "*" is over the "<" compare)
    Thanks,
    Mark

    Gabe,
    Thanks for your help with the absolute function. It worked perfectly.
    Thanks,
    Mark

  • Question on Decode function.

    I have the following table structure.
    Table name: TMP_tab_1
    Columns: role_id
    : comm_code
    : amount
    I need to write a sql statement for
    If role_id = 280 and comm_code <> 330 then
    sum(amount)
    end if
    Please advise how to use decode to resolve the above issue.
    Thanks.

    Why decode?
    select sum(amount) from TMP_tab_1 where role_id=280 and comm_code<>330;
    Above returns the amount summed for all rows.
    If you have non-distinct role/comm and you want amounts summed at that level
    select role_id, comm_code, sum(amount)
    from TMP_tab_1
    where role_id=280 and comm_code<>330
    group by role_id, comm_code;
    If you need to see everybody but suppress amount for many, then
    select role_id, comm_code, sum(decode(role_id, 280,decode(comm_code, 330,0, amount), 0))
    from TMP_tab_1
    group by role_id, comm_code;

  • Question with decode

    What I want to do is have 'o.supplier_id = w.city' not only display the name of the city, but to add the word "warehouse" at the end automatically each time. How would I do that here?
    select o.ord_id,
    decode(o.order_status, 'C', 'Order completed', 'o.supplier_id = w.city') Order_destination,
    from orders o,
    warehouses w
    where o.ord_id = w.city
    group by o.ord_id;

    Hi,
    Are you saying the query is working okay now, but instead of 'o.supplier_id = w.city' you want it to say 'o.supplier_id = w.city warehouse'?
    If so, change 'o.supplier_id = w.city' to 'o.supplier_id = w.city warehouse'
    select    o.ord_id,
              decode ( o.order_status,
                   'C',             'Order completed',
                              'o.supplier_id = w.city warehouse'
               ) Order_destination,
    from      orders o,
              warehouses w
    where     o.ord_id = w.city
    group by  o.ord_idIf you want something else (e.g., if status is not 'C', then you want to compare o.supplier_id to w.city) then post a little sample data, and the results you want from that data (formatted, between tags).
    You'll almost certainly want to use CASE instead of DECODE.  If you have to ask about how to do something in DECODE, then the solution is going to be needlessly complicated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Question about decode

    hi all
    i have a table called employee_report
    PRCNT_DOWN number(5,2)
    i want to show the precent with the sign %
    lets say that the values are
    PRCNT_DOWN
    0
    0
    5
    3
    so i did like this
    select decode(0,0,(to_char(PRCNT_DOWN,'999.99')||'%')) as aa from employee_report the problem is that when PRCNT_DOWN equal 0 the result is .00%
    i want that if the precent is 0 it will show nothing ,
    so i did
    select decode(0,' ',(to_char(PRCNT_DOWN,'999.99')||'%')) as aa from employee_report
    so it shows space to all of the column even if they contain a value , what is the solution to this kind of problem ?
    Thanks
    Naama

    naama wrote:
    select decode(0,0,(to_char(PRCNT_DOWN,'999.99')||'%')) as aa from employee_report the problem is that when PRCNT_DOWN equal 0 the result is .00%
    i want that if the precent is 0 it will show nothing ,you almost had it. Just use the column as the first parameter in the decode. Then add the values that need special handling and add the "else" part as the very last parameter.
    such as here
    select decode(PRCNT_DOWN
                         ,0,NULL
                        ,to_char(PRCNT_DOWN,'FM9G990D00')||'%'
                        ) as aa
    from employee_report
    example
    select decode(9.876
                     ,0,null
                     ,to_char(9.876,'FM9G990D00')||'%'
    from dual;
    9.88%Edited by: Sven W. on Dec 16, 2010 1:51 PM - changed formating

  • Question about encoding/decoding a custom UIComponent

    Hello,
    I am trying to create a custom JSF component using the following code :
    class UICustomCTP extends UIInput {
          * Component that holds a list of Norms
         public static final String COMPONENT_TYPE = "org.alfresco.faces.CustomCTPInput";
         public static final String COMPONENT_FAMILY = "javax.faces.UIInput";
         // ID's
         private static final String ID_CTPKEY_FLD = "-ctpkey-field";
         private static final String ID_CTPDESC_LST = "-ctpdesc-list";
         @Override
         public String getFamily() {
              return COMPONENT_FAMILY;
         @Override
         public void encodeBegin(FacesContext context) throws IOException {
              // Set-up the dynamic id's
              String idClient = getClientId(context);
              String idCtpKey = idClient + ID_CTPKEY_FLD;
              String idCtpDescList = idClient + ID_CTPDESC_LST;
              ResponseWriter writer = context.getResponseWriter();
              writer.startElement("div", this);
              writer.writeAttribute("id", "ctp-container-part", null);
              writer.writeAttribute("class", "ctp-container-part-style", null);
              writer.write("R�sum� :");
              writer.startElement("input", this);
              writer.writeAttribute("id", idCtpKey, idCtpKey); // is the property name should be the same as the key?
              writer.writeAttribute("type", "text", null);
              writer.writeAttribute("value", "", null);
              writer.writeAttribute("style", "width:20px", null);
              writer.endElement("input");
              writer.startElement("select", this);
              writer.writeAttribute("id", idCtpDescList, idCtpDescList); // is the property name should be the same as the key?
              writer.writeAttribute("size", "5", null);
              writer.writeAttribute("style", "width:300px", null);
              writer.writeAttribute("multiple", "1", null);     
                   there's many option items here
              writer.endElement("select");
              writer.endElement("div");
              super.encodeBegin(context);
         @Override
         public void decode(FacesContext context) {
              super.decode(context);
              // Set-up the dynamic id's
              String idClient = getClientId(context);
              String idCtpKey = idClient + ID_CTPKEY_FLD;
              String idCtpDescList = idClient + ID_CTPDESC_LST;
              // retrieve the request
              Map requestParamMap = context.getExternalContext().getRequestParameterMap();
              String ctpKeyInputValue = (String) requestParamMap.get(idCtpKey);
              List<String> ctpDescInputValueList = (List<String>) requestParamMap.get(idCtpDescList);
              Object ctp = new CTPItem(ctpKeyInputValue, ctpDescInputValueList);
              setSubmittedValue(ctp);
              setValid(true);
         @Override
         protected Object getConvertedValue(FacesContext context, Object submittedValue) {
              CTPItem ctpItem = (CTPItem)submittedValue;
              return ctpItem;
         } I don't have, and don't need and I cannot use renderer, tag definition, taglib definition because this component is generated through Alfresco ECM
    (and I don't have access to the JSP (not authorised)).
    My problem:
    When I try to read the inputs through request parameters :
          String ctpKeyInputValue = (String) requestParamMap.get(idCtpKey);
          List<String> ctpDescInputValueList = (List<String>) requestParamMap.get(idCtpDescList);It returns always null.
    It's is not very clear what value to put in the third parameters in writeAttribute and what is the logic behind with that property.
    It looks like I forget to implements something but cannot find what. I read many tutorials and forums but didn t find any solution.
    Thanks if somebody can help me.

    Silly me... just forget that id and name are not the same...
    Thanks, it work perfectly with name attributes.
    Regards,
    Patrick

  • Decoder/Encoder Question

    I have a G4 Ti 4200 8X with the built-in Philips Decoder/Encoder. I haven't used it and wanted to give it a try. What do I need to do so I can use an older, 8mm analog camcorder to capture from? It has standard RCA style video output. Do I just plug it into the the adaptor plug on the back of the card and start the software? Is there an optimal way to capture for decent quality? I just got a DVD burner and would like to be able to burn the 8mm tapes to DVD for long-term storage.
    Also, what about audio?
    Thanks.

    If the Camcorder has a S-video out jack, (Yellow) you plug that into the GFX S-video in jack.
    For sound, you need to plug the Camcorders audio ports (RED & WHITE) into your PC's sound card LINE in port. you may need a converter for this.
    Then the program should be able to record sound and Video at the same time.

  • DTS Decoding Verification (And return question of SB055A)

    So my X-Fi Elite Pro fried a couple months ago and I finally replaced it this weekend. However after connecting my new PS3 and new monitor and getting a blu ray in i find i have no sound. Going through all the settings I can't find the decoder settings anywhere. Then I look into it and I have SB055A
    So I am contacting NCIX to return it however if they want to be stupid and charge me 5% restocking fee is there anyway I can return it to creative for the full price?
    Also I found a card on ebay (just the card) model SB0550 and looking at the latest drivers (for vista x64) I should be able to decode the DTS coming from my PS3 through optical right?

    = Ok I found that a fix for teh 2.8.0004 drivers and its now working perfectly. However I dont want to trust that this fix will be updated as the drivers do. So I still plan to return it. However I was wondering if the Dolby Digital Li've thing will activate the decoding again? Or is the DDL only for encodeing?@
    70.64.6.95

Maybe you are looking for

  • Will logic pro x run on my mac mini dual core intel i5 with 4gb of ram and mountain lion ?

    hi there guys, will logic pro x run on my mac mini dual core intel i5 with 4gb of ram and mountain lion ? I'm not sure if my machine is 64 bit - it is the current model base mac mini. Many thanks for any help you can offer ! Simon

  • How to find proc/func name from package name and line number?

    Hi, We are using the pl/sql call stack dump (dbms_utility.format_call_stack) for some debugging purposes. But in the case of a package body execution, the dump does not return the name of the procedure/function that is being executed, but only the na

  • Update BDCP table custom infotype custom field

    Hi All, I have created  a custom infoype and added a custom field with in this infotype. I have clicked change document button for the dataelement. When i changed the value with in that infotype the entry is not updating in table BDCP. When i changed

  • Getting error while starting my second database

    Hi to all, I have a problem of getting start of Enterprise manager of my second database:- I create another database on same machine & after creation i restart my laptop & start listener & dbconsole but after this i am not able to login in Enterprise

  • Can I use Time Machine?

    I have a TB disk hooked up to my Airport using Ethernet. Is this not (in effect) the same as Time Capsule? Is there any way that I can get Time Machine backing up to this disk, rather than using the USB method, or do I have to get a new router?