Can not user Raw value as NULL return in Select List

Help me!
I recently converted my application to take advantage of the sys_guid() function that oracle offers over the sequence/trigger option.
However, I user a hierarchical set up and I need to be able to insert a RAW value of '00' if the user does not select something in a select list. When I try to do this, I get an "ORA-01465: invalid hex number" error.
I've also tried to return 00 and HEXTORAW(0) but that didn't work either. Infact 00 return a can not insert null value. Please help as I believe the sys_guid function is the best choice if I can make it work.

Hey Scott, my first name is Daniel.
Here is in detail the reason for which I want to be able to work with RAW. As everyone knows, most of your tables your going to have a UID. In general this is going to be a NUMBER column into which you will insert values that populate from a trigger getting the nextval of a sequence and returning the result into the NUMBER column of the row being inserted.
This, however, requires a trigger and a sequence. Not that that's really a bad thing, I just think it can be done better. All we are really after here is a UUID or GUID. The thing is if you used a sequence to generate this value, you don't have a good way of knowing that the number is truly unique. You'll learn this as soon as you try to merge with a table from another database or do something else of the like.
What I prefer to do is to use Oracle's SYS_GUID function when I create a table. To use this function you create a RAW(16) DEFAULT SYS_GUID(). From that point you don't even need to reference the column on insert, unless you're inserting into * and in that case you just specify DEFAULT. The use of sys_guid means I don't need a trigger and I don't need a sequence, and the result will always be unique, regardless of the DB.
In APEX, and elsewhere, the way you use a select list is with a display value and a return value. An example would be, emp_name as the display value and emp_id as the return value. In my case, the emp_id would be the RAW values returned by the SYS_GUID() function when the employee was created. But it's not working because of the RAW value.
I know that APEX can enter the value in session state that is returned from a RAW column because I did a test earlier and it worked. I would have to see it in session state for debugging. *** The problem is in creating a new record. ***
APEX really does not have to work with the RAW column because the default value has been specified. But for some reason, it does not like it anyway. I found this problem when working with parent/child relationships in my tables.
Lets say there are three columns GUID, TITLE, and PARENT. When creating a new record, I allow the user to select its parent. If the new record IS a parent then they would leave it as the default '- Is Parent -' and the PARENT column would be left as NULL. But because the GUID is RAW to make the relationship work with the parent, the PARENT column would be RAW too and APEX gives me the errors I was telling you about before.
Sorry for going on so long. I don't know if I even got my point across. ;) Please let me know if you need me to do something on my part to further demonstrate my point. I would be happy to set up a demo if requested.

Similar Messages

  • I can not get link-value  from af:tree.

    Hello.
    I use jdeveloper 10g.
    I can not get link-value from tree.
    I use following code:
    <f:facet name="nodeStamp">
    <h:panelGroup binding="#{backing_dialogDic_dic_ETS.panelGroup1}"
    id="panelGroup1">
    <h:outputText value="#{item.vidNum} #{item.vidName}"
    binding="#{backing_dialogDic_dic_ETS.outputText1}"
    id="outputText1"/>
    <af:commandLink
    binding="#{backing_dialogDic_dic_ETS.commandLink2}"
    id="commandLink2"
    action="#{backing_dialogDic_dic_ETS.returnObject}">
    <af:setActionListener from="#{item.idVid}"
    to="#{processScope.ETSId}"/>
    <af:objectImage source="/images/icons/10.gif"
    shortDesc="Выбрать"
    binding="#{backing_dialogDic_dic_ETS.objectImage2}"
    id="objectImage2"/>
    </af:commandLink>
    </h:panelGroup>
    </f:facet>
    </af:tree>
    //in java bean:
    public String return_Object() {
    Object ob = JSFUtils.getManagedBeanValue("processScope.ETSId");
    System.out.println(o);
    return null;
    In console I see null.
    How I get this value???
    I can get this value if i use treeTable instead of tree.
    Thx, Dema.

    Hi,
    not that I think it matters, but the processScope is not a managed bean but a memory scope. So if
    JSFUtils.getManagedBeanValue("processScope.ETSId");
    assumes a managed bean then this may be incorrect as most likely there exist no managed bean with this name. You should be able to access the process scope from AdfFacesContext.getProcessScope(), which then returns a Map, which you call get("ETSId") on
    Frank

  • I bought a Sony alpha 77II and can not open RAW in adobe photoshop elements 12.

    I bought a Sony alpha 77II and can not open RAW in adobe photoshop elements 12. Image data converter is not ok because of to much pre defined colour management, suggestions ?

    [discussion moved to Photoshop Elements forum]

  • Can not open RAW-Files from Nikon D4 in Photoshop cc

    hi. i can not open RAW-Files from Nikon D4 in Photoshop cc. (Camera RAW 6.7) can you help please?

    ACR 6.7 would be for an older product, PS-CS5 or PSE10 or PRE10.
    What does Help / About Plug-ins… / Camera Raw… show in PS-CC for a version for ACR and is there more than one version of ACR in the Help / About Plug-in list.  Help / About Plug-in is what I’d do on Windows; I’m not sure if the menu path is the same on a Mac or not.

  • I can not open raw files in elements 12 any help please?

    I can not open raw files from my Nikon D610 in elements 12. (I have already downloaded raw converter 8.3 but to no avail) any help please would be appreciated.

    Hi,
    Can you confirm which Camera Raw PSE 12 is actually using by loading the editor and going to Help -> About Plug-in -> Camera Raw.
    If you do Help -> Updates it may install the latest camera raw of 8.4 - not on XP or Vista systems.
    Do you use any Nikon software to download the images? The older versions have been known to corrupt the files.
    See the following for more info.
    http://owl.phy.queensu.ca/~phil/exiftool/fix_corrupted_nef.html
    Brian

  • I can not open raw files in cs6 extended ,my camera is Nikon D 800E.

    I can not open raw files in cs6 extended ,my camera is Nikon D 800E.
    Hope some one can help me.
                                     Robert chen

    The D800E is definitely supported in Camera Raw 7.1 which is compatible with CS6.
    Which version of Camera Raw are you running?
    Win: Help > About Plug-In > Camera Raw
    Mac: Photoshop > About Plug-In > Camera Raw
    If you're already on 7.1, what exactly happens when you try to open Raw files from that camera?

  • Nikon D7200 and can not open RAW files.  Error msg says camera isn't supported.  Using PSElements 12

    I recently purchased a Nikon D7200 and I can not open RAW files.  I get error messages indicating camera isn't supported.  I've downloaded RAW 9.0 but no luck.  I'm running PSElements 12.  Any suggestions?  Is the camera too new for Adobe?

    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements
    As per
    Camera Raw plug-in | Supported cameras
    D7200 needs ACR 9 and according to
    Camera Raw-compatible Adobe applications
    PSE12 supports only up to 8.5

  • I can not open raw image files from my Cannon 5d mark iii with cs6 and my cs6 in mac

    I can not open raw image files from my Cannon 5d mark iii with cs6 and my cs6 in mac

    The Mk III requires an updated version of Camera RAw, so run Help --> Updates and install it.
    Mylenium

  • I have just purchased the new Canon 7D II.  I am using CS6 and Lightroom 5.0, neither of which can open the RAW files although I see from the list of supported cameras that the 7D II is covered.  I have updated both CS6 and LR so that is not the problem.

    I have just purchased the new Canon 7D II.  I am using CS6 and Lightroom 5.0, neither of which can open the RAW files although I see from the list of supported cameras that the 7D II is covered.  I have updated both CS6 and LR so that is not the problem.  Not sure what to do next.

    It has been indicated that both of those cameras will be supported in the final release of Camera Raw 8.7. But there is no announced release date. There never is. I assume it will be before December 31. But that is only my guess based on the fact that the release candidate expires then.

  • I can not load RAW files from my nikon d810

    I Have a problem Reading RAW files from my nikon d810

    Thanks,
    Joop
    Op 26 jul. 2014 om 17:40 heeft Rikk Flohr <[email protected]> het volgende geschreven:
    I can not load RAW files from my nikon d810
    created by Rikk Flohr in Photoshop Lightroom - View the full discussion
    https://forums.adobe.com/search.jspa?q=D810
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6585986#6585986
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Lightroom by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Can i get a number of rows in the select list??

    Hello~
    I am studying the "oracle call interface". but i don't know much about oci.
    Anyway i want to know that how can i get a number of rows.
    for example, there is a source code of the number of colums in the select list.
    The following is a list of DB(example)
    /*DB table*/
    ID NAME CODE ID
    1 A 1 A
    2 B 2 B
    /*source*/
    err = OCIAttrGet ((dvoid *) stmhp, (ub4)OCI_HTYPE_STMT, (dvoid*)
    &parmcnt, (ub4 *) 0, (ub4)OCI_ATTR_PARAM_COUNT, errhp);
    /*result*/
    The Column is 4. (ID, NAME, CODE, ID)
    So, i think that the row is 3 (ID, 1, 2) in the DB table.
    Simply, Can i get a number of rows in the select list??
    for example,
    err = OCIAttrGet ((dvoid *) stmhp, (ub4)OCI_HTYPE_STMT, (dvoid*)
    &parmcnt, (ub4 *) 0, (ub4)OCI_ATTR_RAW_COUNT, errhp);
    I'm trying to get the number of row count. but i can't find.
    Please, could you let me know that how can i get the number of row count.
    Thank you.

    Thank you for your reply.
    we are tested the source code by reply.
    The following is the test source code.
    /*source code*/
    strcpy (szStatement, "SELECT * from DB_TABLE");
    OCIStmtPrepare(gpOCIReadStmHandle, gpOCIErrHandle, szStatement,
         strlen(szStatement), OCI_NTV_SYNTAX, OCI_DEFAULT);
    OCIStmtExecute(gpOCISvcHandle, gpOCIReadStmHandle, gpOCIErrHandle,
         0, 0, 0, 0, OCI_DEFAULT);
    /* get a number of rows count , Reply : prajithparan*/
    OCIAttrGet((dvoid *)gpOCIReadStmHandle, OCI_HTYPE_STMT, (dvoid *)&nRowCount, NULL, OCI_ATTR_ROW_COUNT, gpOCIErrHandle))
    But There is a problem of the result value.
    The result value is 0. It's mean that the row count is 0. and then we are using the all of fuction is succeed.(return value)
    I don't know what is problem. Please let me know about the problem and solution.
    Thank you.

  • Value is null return blank

    Hi all,
    I got two query which link to together in order to get the cost, however, now I want to show on my report if there is not found in the link it will return null. What I use if the value is null in the field level however when display it still show as null instead of 0 that what I want ?
    Any idea ? or any other way to solve my problem.
    please help me URGENT!!! Thanks.

    Hi John,
    Here is my first query :-
    SELECT AW.PACKAGELEAD,
    SUBSTR(AW.DEVICENO,1,50),
    AW.CURR_OPER,
    AW.CURQTY,
    AW.OPERATION_SEQ_NUM,
    AW.CUSTOMERCODE, ARC.ATTRIBUTE2, AW.DEVICENO DEVICE_NO, BSO.OPERATION_DESCRIPTION, AW.INVENTORY_ITEM_ID
    FROM AIC_COST_WIP_TEMPB AW, AR_CUSTOMERS ARC, BOM_STANDARD_OPERATIONS BSO
    WHERE ARC.ATTRIBUTE1 = AW.CUSTOMERCODE
    AND ARC.STATUS = 'A'
    AND BSO.OPERATION_CODE(+) = AW.CURR_OPER
    ORDER BY AW.DEVICENO, AW.CURR_OPER
    and here is the second query :-
    SELECT DISTINCT MSIK2.CONCATENATED_SEGMENTS,
    BBOM.ASSEMBLY_ITEM_ID,
    BIC.OPERATION_SEQ_NUM,
    CST.MATERIAL_COST,
    BIC.COMPONENT_QUANTITY,
    TO_NUMBER(BIC.attribute1) CPY
    FROM BOM_BILL_OF_MATERIALS BBOM,
         BOM_INVENTORY_COMPONENTS BIC,
         MTL_SYSTEM_ITEMS_KFV MSIK2,
    CST_ITEM_COST_TYPE_V CST
    WHERE BBOM.BILL_SEQUENCE_ID = BIC.BILL_SEQUENCE_ID     
    AND BIC.component_item_id = MSIK2.inventory_item_id
    AND MSIK2.INVENTORY_ITEM_ID = CST.INVENTORY_ITEM_ID
    AND CST.ORGANIZATION_ID = 8
    AND MSIK2.ORGANIZATION_ID = 8
    AND cst.cost_type_id = 1
    AND (BIC.disable_date IS NULL OR (BIC.disable_date - SYSDATE) > 0)
    the link between two qeuery is the query1->inventory_item_id & operation_seq_num versus query2->assembly_item_id & operation_seq_num.
    The both link is working fine. However, I need to show the results of formula and also cumulative of the results. But the result will only be shown if there is a link found between the two query, even I have putting null value as zero if it does not found from the query. So, that's my problem.
    Hope u can understand and help me to resolve this problem. Thanks
    Rgds
    Lim

  • The dml not giving proper value in the returning into variable

    DELETE FROM temp_records_med
    WHERE slno NOT IN (SELECT COLUMN_VALUE
    FROM TABLE (v_slno_tab));
    RETURNING COUNT(slno) INTO p_retval;
    There are 4 rows deleted but the the the variable has got 0 in it.
    Why?

    I am deleting from the below given table based on SLNO.
    How to get the count of records that are deleted?
    DESC temp_records_med
    SQL>
    FILEID NUMBER,
    FILENAME VARCHAR2(100 BYTE),
    SLNO NUMBER,
    IMSI VARCHAR2(20 BYTE),
    IMEI VARCHAR2(20 BYTE),
    CALLEVENTSTARTTIMESTAMP DATE,
    UTCTIMEOFFSET VARCHAR2(6 BYTE),
    CALLEVENTDURATION NUMBER,
    CAUSEFORTERMINATION NUMBER,
    CALLTYPE NUMBER,
    SERVICETYPE NUMBER,
    SERVICECODE NUMBER,
    SUPPLSERVICECODE VARCHAR2(5 BYTE),
    DIALLEDDIGITS VARCHAR2(20 BYTE),
    CONNECTEDCALLINGNUMBER VARCHAR2(20 BYTE),
    THIRDPARTYNUMBER VARCHAR2(20 BYTE),
    RECORDINGENTITYIDENTIFICATION VARCHAR2(20 BYTE),
    CALLREFERENCE VARCHAR2(20 BYTE),
    ACCESSPOINTNAMENI VARCHAR2(20 BYTE),
    ACCESSPOINTNAMEOI VARCHAR2(20 BYTE),
    DATAVOLUMEINCOMING NUMBER,
    DATAVOLUMEOUTGOING NUMBER,
    SGSNADDRESS VARCHAR2(20 BYTE),
    GGSNADDRESS VARCHAR2(20 BYTE),
    CHARGINGID VARCHAR2(20 BYTE),
    CHARGEAMOUNT NUMBER
    CREATE OR REPLACE PROCEDURE p1 (p_retval OUT NUMBER)
    IS
       CURSOR med_rec_cur
       IS
          SELECT *
            FROM temp_records_med;
       TYPE med_rec_tab IS TABLE OF temp_records_med%ROWTYPE;
       TYPE slno_tab IS TABLE OF temp_records_med.slno%TYPE;
       v_count         NUMBER;
       v_filename      temp_records_med.filename%TYPE;
       v_fileid        temp_records_med.fileid%TYPE;
       v_med_rec_tab   med_rec_tab;
       v_slno_tab      g_slno_tab;
       dml_errors      EXCEPTION;
       v_count1 number;
       v_count2 number;
    BEGIN
       OPEN med_rec_cur;
       LOOP
          BEGIN
             FETCH med_rec_cur
             BULK COLLECT INTO v_med_rec_tab LIMIT 1000;
             FORALL i IN v_med_rec_tab.FIRST..v_med_rec_tab.LAST SAVE EXCEPTIONS
                INSERT INTO meddetail
                     VALUES v_med_rec_tab (i)
                  RETURNING       slno
                BULK COLLECT INTO v_slno_tab;
          EXCEPTION
             WHEN DUP_VAL_ON_INDEX
             THEN
                NULL;
             WHEN OTHERS
             THEN
                NULL;
          END;
          EXIT WHEN med_rec_cur%NOTFOUND;
       END LOOP;
       CLOSE med_rec_cur;
      DELETE FROM temp_records_med
             WHERE slno NOT IN (SELECT COLUMN_VALUE
                              FROM TABLE (v_slno_tab));
        --RETURNING COUNT(slno) INTO p_retval;
       COMMIT;
    END;Edited by: user8731258 on Sep 8, 2010 10:50 PM

  • By using personalization can we default the values as null in oaf

    Hi All,
    Can we change the default values to null....
    Actually i have from and to date fields....when ever page opens the vales are geting defaulting in that fields...
    I need to make this as null....by using personalization is it possible( if yes...need help) or i need to extend the co..
    Regards
    Harry

    Hi Harry,
    If the values are defaulting from the "initial value" property it can be set to null by removing those values from personalization, but I feel it will be defaulting from code if it is so, same can not be achieved by personalization.
    Regards,
    Reetesh Sharma

  • Can not view monitor values in the management portal

    hi 
    in the last 3 days when trying to view the monitoring values on cash we receive the following error
    The server could not retrieve metrics (Internal Server Error).
    we can not see the usage values .
    is there an alternative method to see the numbers
    best
    Guy  

    Hi,
    I receive this error even if I create a new cache preview yesterday, however, it didn't give me error today, all cache preview works fine today, what about yours? May be a glitch.
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Rush Order & RLT

    Hi All, am currently using RLT, i would like to control the rush orders from consuming the stock reserved by the sales orders available in the system already. note : i cannot exclude the sales requirements from delivery scope of availability check, b

  • Since the upgrade to FF 5 on OSX 10.6.8 I have no 'Downloads' window and no 'View Source' window.

    Firefox appears to function normally except for the 'Downloads' window and 'View Source' window not being accessible. However, when selected they appear as being active in the 'Windows' menu but cannot be seen on screen.

  • Trapped in filevault

    I turned my filevault on and somehow it was interupted and now my administrator account is lost. I've tried to use the install disc but it will not start up. Can some one help me? ibook G4   Mac OS X (10.4.6)  

  • Audigy 2 ZS Platinum Power Cable Adap

    Help me please. I am lost here and cannot find a similar answered question. I have been using an Audigy 2 SZ Platinum card and box in an older Dell desktop for about two years. This week I bought a new Dell Inspiron 530 desktop and when migrating the

  • Linking Goods Receipt to Production Order Component

    Hi, I would like to ask if there is a link between materials which have been goods receipts (movement type 101, 501) to the materials or components used in production orders (table resb). Materials with zero inventory cannot be used for production or