How to Expose byte[] Field in the Bindings

I'm using JDeveloper 10.1.3.2 and using JPA...I have a table that contains many columns and one of these columns is an array of bytes:
@Lob @Basic(fetch=FetchType.LAZY)
@Column(name="SYS_CERTIFICATE")
private byte[] certificate;
Is there a way to expose this field in the pageDef for my jspx page? I don't need this field to actually exist on my page, but after an action has occurred I want to programmically populate this field in the bindings.
In the data controls, its listed as a accessor attribute but it has no attributes so if I try to add it as an accessor attribute there are no attributes to select. I can't change the certificate element to be an attribute (instead of a accessor attribute) because the type has to be byte[] and cannot be byte since I need to store an array of bytes. Any ideas?

Hi,
I created a POJO model to simulate this
package oracle.pojo.entities;
public class TestEntity {
    private byte[] cert;
    private String name;
    public TestEntity() {
    public void setCert(byte[] cert) {
        this.cert = cert;
    public byte[] getCert() {
        return cert;
    public void setName(String name) {
        this.name = name;
    public String getName() {
        return name;
package oracle.pojo.entities;
public class TestEntityWrapper extends TestEntity {
    private String certificate;
    public TestEntityWrapper() {
    public void setCertificate(String certificate) {
        super.setCert(certificate.getBytes());
    public String getCertificate() {
        return new String(super.getCert());
}As you see, I used a wrapper class that translates the byte to string and string to byte. I am wondering if there is something similar you can do in your JPA entity
Frank

Similar Messages

  • CRM  IC Winclient - How to add new fields in the BP Search of TRX CIC0

    Hello Experts,
    I want to know how to add new fields in the BP Search of TRX CIC0. In the HTML that we're using here I need to add the URL of the BP.
    Can you help me?
    Thanks in advance.
    Caíque Escaler

    Hi
    make append to tables in se11 - CCMBP1FIELDS, CCMBP2FIELDS
    in spro in Define customer-specific search control -> mark fields with X.
    and enhance html template CRM_CIC_SEARCH_DISPLAY. -> tcode smw0, look for package CRM_CIC_COMPONENTS for html CRM_CIC_SEARCH_DISPLAY. export it from SAP, edit, and import.
    you will need to enhance function module used for searching - you will find him in spro in Search Strategies.
    Regards
    Radek

  • How to add new fields to the system form (Ex.expenses to a/r invoice form)

    hi
    can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
    i want to add expenses field to system a/r invoice form and connect data base also.
    i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
    reply soon plz..
    thankQ

    If I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.

  • How to update ABSKZ field in the table EKPO

    Hi
    Is there any way to update the rejection indicator (ABSKZ) field of table EKPO?.
    I am looking at BAPI_CHANGE_PO FM, But it does not have ABSKZ field in the item structure BAPIMEPOITEM.
    Do I need to extend the BAPI structure with ABSKZ field ?
    Regards
    Raj.

    Hi
    To extend  BAPI_PO_CHANGE  for EKPO-ABSKZ field , we have to add field in the structure BAPI_TE_MEPOITEM to pass it to  EXTENSIONIN. As ABSKZ field already availble in the EKPO it is not allowed to add ABSKZ in the structure BAPI_TE_MEPOITEM. it is throwing below error message.
    Field ABSKZ in table EKPO is specified twice. Please check
    Since it is not Z field and also not availble in the structure BAPIMEPOITEM  not sure how to update ABSKZ field in the EKPO table.
    Please advice.
    Regards
    Raj

  • How to validate input fields as the user is filling up a form with jQuery?

    Hello EA friends.
    Someone has experimented on how to validate input fields as the user is filling up a form with jQuery?, if the field is numeric and insert an A for example, an alert appears showing "insert a number" or not allowed to enter anything until a number is entered.
    Thanks and regards.
    Fer

    Hi Sudeshna.
    Sorry for not responding on time, how can I be included in this code?
    sym.setVariable("typeActivity", "input")
    var Element_1=document.createElement(typeActivity);
    $(Element_1).css({"text-align": "center"});
    //Answer
    sym.setVariable("Answer_1", "4");
    sym.$("box_1").append(Element_1)
    This code is on my creationComplete and it works fine.
    Would greatly appreciate your help.
    Regards.
    Fer García

  • How to Add IBAN Field in the Bank Details Infotype?

    Hello All,
    I need to know the procedure for How to add IBAN field in the bank details infotype?
    Could anyone help me please.
    I m new to SAP HR.
    Immediate help will be appreciated.
    Thanks.
    Regards,
    Mudassir.Imtiaz

    Hi mudassir,
    For IBAN implementation:
    1. Implement SAP Notes 925410, 1409674, 1405521
    2. Go to t-code FIBF - From menu select Settings - P/S Modules - of an SAP Application - Create entry
    For Turkey we've added the following entry (depends on country) :
    00003040 TR CONVERT_IBAN_2_BANK_ACCOUNT_TR
    3. Go to V_T588M for module pool MP000900 and screen 2000 select IBAN & Q0009-IBAN00 fields as standard.
    4. Go to table T77S0 and make value of ADMIN IBAN entry S.
    Regards,
    Dilek

  • Expose userid field in the Check in/out web service

    Hello
    I need to integrate the Check in/out web services into a InfoPath Library Form. I have the webservices added and working properly. My progress thus far:
                  -CheckinFile, CheckOutFile, UndoCheckOut data connections are added
                  -Necessary rules are built
                  -Web services appear to work correctly EXCEPT
    1. I receive an error if the form is opened in Browser, but not when opened in InfoPath Filler. This is a problem because most of our users do not have InfoPath installed. So we have a need to open in Browser or dialog.
    2. Once the file is checked back in, the field "Checked Out To" defaults to an application ID.
    So two issues:
    How to open the form in Browser
    How to set the Checked Out To field to the current user.
    From what I have been told, I need to expose the userid element in InfoPath designer.

    Hello,
    I have not tried this yet but you can just follow hilary suggestion to check in/out form when it opens.Make sure your versioning is enabled in library.
    http://www.infopathdev.com/blogs/hilary/archive/2010/11/10/check-that-form-out-or-in-automatically.aspx
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to add custoim fields on the additiondata b tab of va01 and va02

    Hi All,
       i want to add the field on the Additional data B tab of the VA01 and VA02 at header level.
        Already one field is there now i want to add one more field.How to proceed.
       I think i have to go with screen exits.Can you help me in proceeding further and where should i write the code.
       It is urgetn.Please help me

    I have to move the updated fields to the vbak table
    The code is like this
    If      VBAK-ZZGrswgh   less than    ZTRKLMT-ZZweight OR
            VBAK-ZZCubTot    less than    ZTRKLMT-ZZCube   OR
            VBAK-ZZPaltot      less than    ZTRKLMT-ZZPallet   
                  CLEAR VBAK_ZZTRKLMT.
    Else
                  MOVE ‘X’ TO VBAK_ZZTRKLMT.
    End if
    should i write this code in the USEREXIT_MOVE_FIELD_TO_VBAK of program MV45AFZZ ?
    This user exit should trigger when
    VBAK-AUART Equals 'ZWH' OR
        VBAK-AUART Equals 'ZFV'
    Reply soon

  • How to add new fields in the cube?

    Hi,
    I have a cube running and loading data for 8 months now.  Now I have a requirement such that I have to include 3 more fields in the report.  Here, 2 fields are there in DSO and 1 field is not even in the data source.  Can anybody help me with this?
    Thanks and regards..

    Hi Rakesh Ramanan,
    For the two field that are already present in DSO,you can add them in Cube no problem in this.
    But for the new field which is not present in itself in data source you need to modify the datasource .For this firstly you have to go RSA6 transaction select your data source,double click on extract structure then you can append structure,here you need to select the field which you want to add, there are four option  for the append  field added that are
    i)Selection :They act as selection criteria for data extraction in RSA3 transaction.
    ii)Hide field: As a result of this selection, the field is no longer made available in BW.
    iii)Inversion : The value of the key figure is then transferred in inverted form i.e. multiplied by (u20131) into BW or BI.
    iv)Field only: Deselect the indicator u2018Field Onlyu2019 to enable the Service API to pass on the append structure field to the extractor together with the fields of the delivered extract structures in the field list as well as in the selection table.
    You also need to deciede that how you gonna fill this appnded field table or using function module.
    there are many articla available in sdn you can go through them.I have also work on the datasource Enhancement based on the FM and frame the work in one doc if you want just reply me i will provide you that.
    Thanks,
    Deepak

  • How to clear text fields when the user navigates back to the screen

    Hi,
    Does anyone have any idea on how to clear the text input fields and dropdown boxes when the user navigates back to the screen, say for e.g. create screen?
    My issue is that i have plenty of fields in the create screen within a form. Is there a way to avoid programaticaly blanking out every field and just do it at the form level using an api to reset to a state before the user entry?
    Thanks

    This code allows you to make it more generic, and you would need to tweak it if there are more than TextInput controls, but it should provide some ideas.
    As far as using states, you could use SetProperty to set the text to empty, but that might be messier.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import mx.containers.FormItem;
          import mx.controls.TextInput;
          import mx.events.IndexChangedEvent;
          import mx.core.Container;
          private function clearSreen(evt:IndexChangedEvent):void{
            var view:Container = tn.selectedChild as Container;
            for each(var child:Object in view.getChildren()){
              if(child is FormItem){
                var subchild:DisplayObject = child.getChildAt(0);
                if(subchild is TextInput){
                  TextInput(subchild).text = "";
        ]]>
      </mx:Script>
      <mx:TabNavigator id="tn" resizeToContent="true"
        change="clearSreen(event)">
        <mx:Form id="frm1" label="View Number One">
          <mx:FormItem label="First name:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Last name:">
            <mx:TextInput/>
          </mx:FormItem>
        </mx:Form>
        <mx:Form id="frm2" label="View Number Two">
          <mx:FormItem label="Address1:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Address2:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="City:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="State:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Zip code:">
            <mx:TextInput/>
          </mx:FormItem>
        </mx:Form>
      </mx:TabNavigator>
    </mx:Application>
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • How to get additional field from the second list base on lookup information column ?

    Hi everyone,
    Currently I created a SharePoint hosted Apps project and I need to know how can I get additional field from the second list base on lookup information column. example List1 Have 2 columns column1 and column2(Lookup Information from list2 (category)),
    List2 have 3 columns title, and category, and color.  so how can get the title and color from list2 base on this lookup information column (SharePoint Hosted apps and Javascript code)? that is possible?
    Best regards,
    ------------------------------------------------------------ ---Tola---

    You can build one custom lookup control. Refer to the following post
    http://www.stuartroberts.net/index.php/2012/10/03/enhanced-lookup-field-part-1/
    Alternatively, try the following solution from codeplex
    http://sp2010filteredlookup.codeplex.com/
    http://filteredlookup.codeplex.com/
    --Cheers

  • Master Detail Form - How 2 update a field in the Detail form using a query?

    Hello,
    I have a master detail form with, each master record having a fixed(6) number of detail records. One of the fields in the detail record is the PART_DESCRIPTION field. I am trying to update this field by querying Table_X. TABLE_X is in the format of (desciption id, description). Description id runs from 1 to 6.
    When the form displays, the PART_DESCRIPTION field for the 6 detail records needs to be automatically populated with the six values of description stored in Table_X. How can this be done?
    Tried using session storage objects, but made no headway.
    Would greatly appreciate pointers on how to go about doing this.
    Thanks.
    Dev

    If you are on a Portal Version lesser than 3.0.9.8.3, then please try the following to populate
    the PART_DESCRIPTION field.
    Steps:-
    1> Edit the form and go to the Additional PL/SQl section and put the following code in the
    "...after displaying the page area" :-
    declare
    type t_vc_arr is table of varchar2(4000) index by binary_integer;
    l_arr_desc t_vc_arr;
    l_form_name varchar2(200);
    l_form_state varchar2(500);
    begin
    l_form_name := p_session.get_module().get_name();
    l_form_state := p_session.get_value_as_varchar2(
    p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE'
    if l_form_state = 'QUERY_AND_SAVE' then
    select description
    bulk collect into l_arr_desc
    from <schema>.table_x;
    htp.p('
    <script>
    var descArr = new Array();
    var Fidx = 1;
    var formObj = document.WWVM'||p_session.get_id()||';
    var fieldName = "'||l_form_name||'.DETAIL_BLOCK.PART_DESCRIPTION.0";
    for i in 1..l_arr_desc.count loop
    htp.p('descArr['||to_char(i-1)||']="'||l_arr_desc(i)||'";');
    end loop;
    htp.p('
    for (var i=0; i < formObj.length; i++){
    if (formObj.elements.name == fieldName+Fidx){
    formObj.elements[i].value = descArr[Fidx-1];
    ++Fidx;
    htp.p('</script>');
    end if;
    end;

  • How  to add custom fields to the  sap standard  program ukm_bp_display

    How  to add new custom  fields to the  sap standard  program ukm_bp_display .
    could u  please any one help me on this?

    Hello Kumar,
    You have to modify below structure, as this structure is providing the field catalog for output display (ALV).
    Here you can see there are a lot of include structures, so if you want to add fields in the output display you can add those fileds as an append structure to any of the below mentioned structures (Like ukm_s_account, ukm_s_bp_cms_sgm etc as per your requiremnt and positon at which you need to dispaly your fields.)
    DATA: BEGIN OF gt_grid_alv OCCURS 0.
           partner LIKE but000-partner,
           credit_sgmnt LIKE ukmbp_cms_sgm-credit_sgmnt.
            INCLUDE STRUCTURE ukm_s_account.
            INCLUDE STRUCTURE ukm_s_bp_cms_sgm.
    DATA:   credit_sgmnt_txt LIKE ukmcred_sgm0t-credit_sgmnt_txt.
          Gruppe Vector
            INCLUDE STRUCTURE ukm_s_bp_vector.
          Gruppe OBL = Obligo
          include structure UKM_S_BP_CMS_MALUSDSP_OUT.
            INCLUDE STRUCTURE ukm_s_display_segment.
            INCLUDE STRUCTURE ukm_s_bp_cms.
            INCLUDE STRUCTURE bus000_dat.
    *DATA:   icon(4).
          Gruppe RAST (Raster)
    DATA:
             rast01 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast02 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast03 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast04 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast05 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast06 LIKE ukm_s_display_segment-AMOUNT_GRID.
    DATA:    rast2_6 LIKE ukm_s_display_segment-AMOUNT_GRID.
    "Summe raster 2 bis 6
    DATA:  END OF gt_grid_alv.
    Another way is you can  go  to SE38, and you can create implicit enhancements.One enhancement point is available here in this required area. so create an implementation and add your fileds with data types.This way is also simple.
    Hope this will solve yiour problems.
    Regards,
    Antony Thomas

  • How to add a field in the view not in context node

    Hi All,
            I want to add a new field in one of my views. The problem is that the field does not exist in the context node. I have checked in the BOL model there it comes under another root object. I would  like to know whether it is possible to add the field from another root object.
    can you please help to me to solve this issue.
    Advance Thanks & Regards
    Sujith

    Hi Ashish,
                  I will give a detailed explanation of my requirement. I am working in ICWEB client for utility services, In this case for a particular view in the bsp application CRM_IUFCS_IC/View1.htm i want to add a field but the field is not the context nodes, or any of the related entities in the BOl Model. But its in  another root object in the BOL Model. So i would like to know how can i add this field into my layout.
    e.g.:let context node in view to be modified is buag and the field to be added is under BuilHeader object. This is the scenario.
    Advance Thanks,
    Sujith

  • How to hide a field in the maintenance view (URGENT) ???

    I have created a custom table with following fields:-
    MANDT (mandatory)
    KOKRS (mandatory)
    KHINR (mandatory)
    KHINRNAME
    KOSTL (mandatory)
    KOSTLKHINR
    I have a requirement that i should get a pop-up to fill the value of KOKRS but user should not be able to see its value in the maintenance view.
    I have given the maintenance attribute 'S' to KOKRS field so that pop-up should be there , now please advice on how to prevent KOKRS field to be shown in the maintenance view.

    in SE51 try to change the attributes of the field in the screen. Either visible length to be 0 or check and see if any other attribute would be of help.

Maybe you are looking for

  • Can I downgrade the software on my iPod touch from 4.2.1 to 4.1

    I recently upgraded the software on my 4th generation iPod touch from 4.1 to 4.2.1. Since then I can not use it in my car, the iPod is marked as unreadable. I wish to go back to my previous version of 4.1. Is this possible? I have sync'ed my iPod mul

  • Cheap alternative to Apple World Travel Adapter Kit?

    The Lenmar World Travel Adapter Plug Set is only $8.64 on Amazon: http://www.amazon.com/Lenmar-AC5-World-Travel-Adapter/dp/B00013BL18/ref=wlit_dpo?ie=UTF8&coliid=IYUGMO3LZMVRI&colid=32VC09BIR8RXB Will this work? Thanks!

  • Database Toolkit: Reading data from SQL database

    Hello, I have been working on a automated test system storing data into a SQL server database.  Once you get your head wrapped around the toolkit and walk through some of the examples it is not too bad.  Writing to the database was very straight forw

  • FCP 3 projects not importing

    Hello world, I'm running FCPro 5.1.2 UB since a while, so I'd like to import some old projects done under FCPro 3.0.2. Things seems simple but get tricky, because a good half of the files are not importing into rel.5.1.2: I get a dialogbox saying tha

  • Can u suggest me OBIEE 10g demo videos or  tutorial videos ?

    Hi We are using ORACLE EPM 11 right now and we are moving to OBIEE 10g. So, can u please suggest me some sites for "OBIEE 10g demo videos OR tutorial videos" that would be very helpful to me. Best Regards Vinod.