HOW TO SET A RAW FIELD

Hi,
I'd like to know how I can set a RAW field with the correspondent '10' value (for '10' i mean the byte value of '00000101').
Is there a manner to do this at low level, without cast ?
Thanks and best regards,
Neil

The string 00000101 generally represents the binary value of 5 so I am unsure of exactly what you want but maybe the following will help:
UT1 > set echo on
UT1 > col dumped format a30
UT1 > drop table example;
Table dropped.
UT1 > create table example (fld1 varchar2(10), fld2 raw(02));
Table created.
UT1 > insert into example values ('Row 1',hextoraw('05'));
1 row created.
UT1 > insert into example values ('Row 2',hextoraw('0A'));
1 row created.
UT1 > select fld1, fld2, dump(fld2,16) as dumped from example;
FLD1 FLD2 DUMPED
Row 1 05 Typ=23 Len=1: 5
Row 2 0A Typ=23 Len=1: a
Being that on a big endian machine the 8 bits of a byte are 0 - 7 numbered left to right and on a little endian machine the bits are 0 - 7 right to left this may be where the confusion in your post is coming from. On my system the Oracle functions appear to follow big endian set and display patterns but I suspect that the physical byte settings match. You would need to test this by dumping the raw data on the target platform. The only difference this makes is the character value you would choose to get the bit pattern you want.
The dbms_raw package provides varchar2 to raw and back conversion functions.
HTH -- Mark D Powell --

Similar Messages

  • How to set Mandatory Choice field while Creating Custom Task using Sharepoint Designer 2007

    Hi,
    I am new to Sharepoint development.I dont know whether i am posting  the question in Correct place.Kindly redirect me to the correct place if i am posting it in wrong place.
    I  created a custom task in Sharepoint Designer 2007 using
    Collect Data from User
    Action.
    I created a field in the task form which is of choice type and
    unchecked allow blank values
    because i  wanted that field to be a mandatory field.When i handled that task ,i was able to complete that task
    without selecting that mandatory field.But, I was expecting not to allow me to complete the task without selecting that field. Kindly  tell me how to set the choice field as mandatory.

    Hi,
    You are using SharePoint Designer 2007, so I moved the thread to the appropriate forum for MOSS 2007.
    This is by design that
    Workflow-generated form (for action Collect data from User) does not perform validation properly on drop-down choices, the workaround is to use JavaScript to perform the field validation.
    This thread has the JavaScript code can help you:
    http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/0ad7fc3c-97a1-464e-ae89-c3133462dda8/
    Xue-Mei Chang

  • How to set the data fields column wide at sqlplus

    Dear Sir/Madam
    I would like to know how to set the data fields column wide at sqlplus
    Thanks
    Francis

    see
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch6.htm#sthref1131
    and the FORMAT clause of the COLUMN command in
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12013.htm#BACHCABF

  • How to set a payload field value only once for multiple instances selected?

    The user needs to set a payload field value and then he can approve the task so the task can continue through the process, that's fine when the user selects one instance and sets the value in the task details section and then clicks the approve button, but how do we achieve the same behavior in a multiple way?, I mean the user can select multiple tasks in the workspace (in this case the details task page is not available and instead the following label appear "Multiple tasks selected") then if the user clicks the Actions drop down -> APPROVE he only gets the message "your request was processed successfully", so how can the user modify the payload field value only once for all the selected tasks so when he clicks APPROVE the value is populated in all the instances selected.
    Thanks,
    Carlos.

    In the action which displays the edit page just set the form idx value before displaying the jsp.

  • How to set ApplIndentityData header field in JMS adapter

    Hi Guys ,
        I have one requirement for update the field in SAP JMS header. I am using transport protocol for IBM Websphere MQ in JMS adapter.
    While sending data to IBM Websphere MQ Queue via JMS Adapter, need to set the field called ApplIndentityData with the appropriate value which is populate to a MQHRF2 header of a message.
    So, regarding that where will do it? Means JMS receiver adapter or IBM MQ level. If JMS receiver adapter, I think using ASMA, So please guide me how to set this filed value in JMS adapter or share any document you have.
    Thanks & regards
    Vijaykumar S

    Hi RejaSekar,
           I reffered your blog and did the below settings in JMS module and ASMA settings. 
    1) Changed the mode for u201CJMS-Complaintu201D instead of u201CWebsphere MQ(non JMS)u201D
    2) Additional JMS message properties tab created below property name and java type.
           LocalName    --> String
           Partname      -->  String
    3) In module parameter tab added the below module name and key
        AF_Modules/DynamicConfigurationBean   -->  LocalEnterpriseBean  -->  RFH2HEADER
    4) Under parameter Tab
         RFH2HEADER       -->   key.0      -->     insert http://sap.com/XI/System/JMS  DCJMSMessageProperty0
         RFH2HEADER       -->   key.1      -->     insert http://sap.com/XI/System/JMS  DCJMSMessageProperty0
         RFH2HEADER      -->  value.0    -->    LocalName
         RFH2HEADER      -->  value.1    -->    PartnerName
    Kindly check the above settings whether this is correct or wrong. If anything wrong please let me know what we need to change JMS receiver adapter.
    Actually my requirement is need to set these parameters and set the value to that parameters and pass in to /usr folder of a WebsphereMQ message.
    Kindly check and help me out.
    Thanks & regards
    Vijayakumar S

  • How to set the expires field to stop caching of pages

    I want to set the expires fields of the HTML data on pages delivered by weblogic, so caching servers(ie ISA) and clients dont cache the my pages. How do I do this?
    Thanks for any help

    I guess that's the NI Domain (NI Security Login) user name. Check out Tools->Security->Login in LV main menu.

  • [AS][INDCC] How to set Color Conversion field to No Color Conversion when creating PDF Export preset

    How can i set Color Conversion field in Export to PDF dialog to No Color Conversion when creating PDF Export preset? i have done a bit of searching and have found where it has been recommended to set effective pdf destination profile to use no profile but it doesn't seem to be producting the expected results.

    Yes, it seems that i had to make the change after creation, not while creating the preset. thank you.
    tell application "Adobe InDesign CC"
         set newPreset to make new PDF export preset with properties ¬
              {name:"preset name", standards compliance:none, acrobat compatibility:acrobat 7}
         tell newPreset to set PDF color space to unchanged color space
    end tell

  • How to set a BCS field in document library via PowerShell?

    Hi,
    In my  doclib there's a BCS field named "CUSTOMERS3". When I set it as:
    $item["CUSTOMERS3"]="BADO"
    I see the text "BADO" in "View All Properties". But if I click on "Edit Item" button in the toolbar I see the proper picker empty. How should I set my BCS field correctly via PS?

    Hi,
    According to your post, a problem occurred when you set an External Content Type field using PowerShell.
    Here is a similar thread for you to take a look at:
    Updating an “external content type” field on an SPList using PowerShell
    http://stackoverflow.com/questions/8402655/updating-an-external-content-type-field-on-an-splist-using-powershell
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to set a form field focus

    Is there a simple way to set a form field focus... so basically on load the field focus is set to a specific field?  I know how to write it in javascript but was wondering if there is a simple way to basically select the field and click a button or two and get the same result?  thanks.

    The script for that is extremely small and very simple.
    In all hosety, it would probably take longer to edit it through the DW interface than by hand.
    Add this after your form and change the bold areas to the name of the form and the name of the input you want to have focus on...
    <script type="text/javascript" language="JavaScript">
    document.forms['myform'].elements['mytextfield'].focus();
    </script>
    Those two things are the only items that will ever change.

  • How to set an mandatory field to non-mandatory.

    Hi,
    In my form, I will need to set a field to mandatory in certian condition and then set it to not mandatory under different condition.
    I know how to set it to mandatory: field.mandatory = "error"
    Can someone let me know how to reset the field to not mandatory.
    Thanks,
    Laura

    You can try:
         field.mandatory = "disabled";
    Thanks
    Srini

  • How to set a string field with people picker control group

    Hi Guys
    I have a problem with a form list, when I need to set a string field with de content of people picker control that have more than one "user".
    Is there any way to put in string a list of user like the people picker control shows in a form?
    The really problem is I don't know how to read an array of user in a formula rule.
    any example or idea should be appreciated.
    tnks.

    Hi ,
    Please try out in following way :
            /// <summary>
            /// Set value to people picket control
            /// </summary>
            /// <param name="key"></param>
            /// <param name="ppl"></param>
            /// <param name="item"></param>
            private void SetDatatoPeopleEditor(string key, PeopleEditor ppl, SPListItem item)
                try
                    if (item[key] != null)
                        string users = string.Empty;
                        SPFieldUserValueCollection userCol = new SPFieldUserValueCollection(web, item[item.Fields.GetField(key).Id].ToString());
                        foreach (SPFieldUserValue usrItm in userCol)
                            users += usrItm.User.ToString() + ",";
                        ppl.CommaSeparatedAccounts = users.Remove(users.LastIndexOf(","), 1);
                catch (Exception ex)
                    lblErrorMessage.Text = ex.Message;
    private SPUser GetAccountName(PeopleEditor accountPE)
                SPUser user = null;
                string strAccountName = String.Empty;
                try
                    for (int i = 0; i < accountPE.ResolvedEntities.Count; i++)
                        PickerEntity objEntity = (PickerEntity)accountPE.ResolvedEntities[i];
                        user = web.AllUsers[objEntity.Key];
                    return user;
                catch (Exception ex)
                return user;
    It works for me .

  • How to set focus on field having data type other than character(eg. NUMC)

    Hello all,
    I have developed one screen having table control inside. In table control suppose if numeric type field is blank(eg. Employee number of data type NUMC), system should throw error message and should put cursor focus on that perticular filed. In the same table control for fields of data type 'CHAR',  I have done this using 'SET CURSOR FIELD' .
    Please, suggest me how to set cursor focus on the fileds of data type other that character(eg. NUMC)

    Have you tried it?  SET CURSOR FIELD ... works fine for type 'N' fields in a table control.  The restriction is 'character-type' and 'flat'.  Type 'N' (or NUMC-like) fields are both.

  • How to set the 'Lot' field in Batch Pending (Product) Lots as 'Optional'

    We are now Upgrading FROM 11.5.10.2 To r12.1.3.
    The 'Lot' field under Batch material Details -> Pending Product Lots is mandatory, Which is very bad for us.
    Our Current (11i) business process for creating Product lots, is to 1st allocate the 'Lot', and later on allocate and complete the 'Sublots' within this lot.
    The equivalent process in r12 should be: 1st allocate the 'Parent Lot', and later on allocate and complete the 'lots' within this Parent lot.
    Question: Is there any way to set the 'Lot' field to be optional?
    Thanks,
    Eran.

    Hi
    No this is not possible, since Parent lot is a subset of Lot in R12. Once you choose your item as LOT, then it is not possible to make as Optional.
    Try to raise an SR for this, Oracle may provide some workaround for the same.
    Rgds
    Raj
    NTTData India

  • How to set a key field in a local provider for BW workspace

    Hi Experts,
    I've created a local provider through BOBJ analysis for excel / Workspace designer in a BW workspace. However, all the dimensions by default are not having the key field enabled and I'm not able to enable the key field through BW workspace. Also I see the Fact Index Without Key is enabled by default in technical settings, which is not allowing me to select "Fact Index with Key" either. When I go to edit mode, it says "Analytic Index XXX can only be changed in workspace designer". I even tried to go into workspace designer and by selecting the necessary local provider, I coudn't find an option under Local Provider->Reload Provider->Reload (With Changes)->Choose File->Edit Columns to enable the key field(s) for the dimensions.
    Can you please help to locate how to enable the key field for dimensions in local provider.
    Thank you in advance.
    Regards,
    Karthik

    There's nothing to solve. If Reader (XI only) is used only PDF files can be selected. This is how it's supposed to work (although I agree it's silly and should be changed).

  • How to set "Created By" field for KD Documents

    In our system documents that are entered to the Knowledge Directory are not tagged with who it was that submitted them.
    We would like to capture that information but I'm not sure how to enable it (or if its possible).
    I've looked at the Global Property Map and don't see a setting for a document, I looked at the Global Document Map but that seems to specifically relay info between the documents meta data and portal properties (which is not what I'm looking to do).
    Does anyone know how to attach the portal user in some type of "submitted/created by" field to a document?
    Thanks and happy September!

    Hello Keshav.T,
    Thank you for your information.
    Finally, I got an answer from OSS and the following is that.
    The popup is shown when there are more than 10 variants exist.
    If do not want to have this popup, you can modify the include
    LSVARTOP in SE38:
    C_VARILIST TYPE I VALUE '10' - maybe change value to '100'
    or if you want to have the popup but without the name inside:
    change include LSVARE01 and comment the line:
    ename-low = sy-uname. append ename. "old
    ename-low = sy-uname. append ename. "new
    I believe this message might be able to solve my problem.
    Thanks again.
    BR,
    Chris Kim

Maybe you are looking for