UI 6.7 - Add UserFields to a form and put ReadOnly

Hi,
With UserFieldsMD I create a field in "JDT1" table (Journal Entries Lines):
            Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
            oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
            oUserFieldsMD.TableName = "JDT1"
            oUserFieldsMD.Name = "MYREF"
            oUserFieldsMD.Description = "My Internal Ref"
            oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
            oUserFieldsMD.EditSize = CInt(50)
            lRetCode = oUserFieldsMD.Add
after, I open the form in "Financials --> Journal Entry" and, in Lines, it shows the "new" field, and the user can change this field.
What I want is put this field in the form Inactive, or ReadOnly, without, manually, have to go to "Form Settings --> Table Format" and uncheck the "Active" property.
Thanks,
Ribeiro Santos

Hi Ribeiro
As I understand it, you want the column with your new field to be inactive, so the user will not be able to edit it?
Without having tried it I would think you could do that in the FormLoad event when the JournalEntries form loads. Something like
lmatrix=oform.items.item("76").specific
lcolumn = lmatrix.columns.item("The Column Name of your column")
lcolumn.editable = false
"76" is the UID of the matrix in the Journal Entries form.
Best regards
Jesper Carstensen

Similar Messages

  • Multilingual Forms and Reports

    I'm looking for a tool, which can add multilingual capability to forms and reports. I found only one, called OraMuLaS.
    Is there anyone who can tell me something about this tool?

    Hello Frank,
    thanks for your help. But if I understand it correctly, the translation hub has some limitaions:
    - you'll need to deploy your application on WEB - no client/server
    - any translation made, generates a seperate forms module; you can't use the same module for different languages
    - if you need to a new translation, you need to build a new form module with the translation hub
    - you can't change translations on the fly (during runtime)
    So I think the oramulas tool might be better!?
    You can find it under www.fairsys.de.
    I did not test it now. So can't tell any experience for now.
    Greatings
    Doris

  • E-Recruitng forms and changeable letter sections

    Hi,
    If you use the standard global variable in your changeable letter section then the field &RCF_S_CS_DI_QUAL_EVENT_IT-EVENT_TIME& contains seconds. I don't want to display seconds to an applicant. If a create a custom global field in the form and put a "corrected" time in there then this time gets lost when the recruiter changes the letter section. Is there either a way of saying that the standard format should exclude seconds or of passing custom global variables into the changeable letter area when the recruiter tries to edit it?
    Thanks in advance
    Rich

    Hello Rich,
    Yes, use HRRCF_PREPARE_LETTER_SECTION as described in note 1073200 for your custom variable.
    Regards
    Nicole

  • Legacy VB6 project. Can no longer add controls to the form.

    Working on a VB6 project that has been in continuous use since 2002.  Needed to make a simple mod and add a new control.  Choosing any control and attempting to drag it on to the form always fails with a black circle with diagonal bar at the cursor
    as soon as the cursor leaves the toolbox.
    Reloaded VB6 and SP6. No luck.
    Tried a new "Hello World" project but was unable to move any controls from toolbox.
    Now the weird part.  Went to 4 other old computers that have always worked in the past.  All of them failed the "Hello World" test as well.
    This is perfectly legal Microsoft Visual Studio Professional load from one of our old MSDN disks.  Are these timebombed or something?
    The program can be edited, compiled and run with no issues, I just can't add controls to any form.

    Hi
    barry6789,
    I am afraid that these forums donot support VB6, you could refer to this thread
    Where to post your VB 6 questions
    and consider posting this issue in these forums below:
    These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
    VB Forums
    VB City
    Thanks for your understanding.
    Regards.
    Carl
    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.

  • Form fields in LiveCycle. I want to allow users to add URLs to a form so that they can be clicked and opened on the web by form reviewers (users). what is the best way to achieve this?

    Form fields in LiveCycle. I want to allow users to add URLs to a form so that they can be clicked and opened on the web by form reviewers (users). what is the best way to achieve this?

    Once the user has entered the URL they want to add to the form. You can use the loadXML function to implement some special text in a label...
    var linkValue = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><exData contentType=\"text/html\" xmlns=\"http://www.xfa.org/schema/xfa-template/2.8/\"><body xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\" xfa:APIVersion=\"Acroform:2.7.0.0\" xfa:spec=\"2.1\"><p style=\"font-weight:bold;text-decoration:none;letter-spacing:0in\">The new link the user have entered is:<a href=\"" + textfield.rawValue + "\">textfield.rawValue</a></p></body></exData>";
      this.resolveNode("lblURL").value.exData.loadXML(linkValue, 1, 1);

  • How to add Help in a Form?

    I want to add help in my forms application.
    Is it possible to add customized help in a form under Help Menu ?
    Can anybody 'help' me in this regard :)
    It will be a great favour !

    Thanks
    But I don't think winhelp will work for web based application.
    Do I have to use html format help.
    or any other better solution for web based app using form server?
    null

  • How can i copy a blank form and add it to the original?

    How can I copy a blank page of a form and add it to the original?

    So, if I want to fill in blanks on a form where I need to add more pages to fill history, what program do I need? In Adobe Reader, I can edit and fill in blanks, but I cannot duplicate more blank pages.

  • Is it possible to add VAT (TAX) in the order form and discount codes ?

    Is it possible to add VAT (TAX) in the order form and discount codes ?

    would it be possible to do a caculation field then ? if I create a number field and add some kind of caculation rule, i've noticed that other form websites do this.

  • Add details to a form

    I've got a main form and need the user to be able to list details IF DESIRED. I'll need to report on the details. What's the best way to handle this? I've been trying my novice demise with tabular forms and master detail but can't get either to do what I want.
    The basics are:
    Main form: General information is entered and dumped into TABLE_A
    Sometimes the user will need to add a list of items and description to one section of the form, and then need to print out the whole thing (items included). What's the best way? Tabular Form? Master Detail? The only fields this detail table needs is its PK, FK to the main form table, item number, and description.
    Thanks for the basic help.
    Alex

    You could:
    1. create a wizard generated form
    2. in the process for saving / creating records return the primary key into your primary key item
    3. create a tabular form for detail records and in the foreign key enter the default page item > your form primary key item
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Add Logo in HR Forms for payslip

    Hi Experts,
    I need to inculde logo in HR froms, my consultant suggested that copy the satandart HR form and create a Z-form.
    i dont have that much idea on HR Forms, is it possible to include the logo in HR Forms?
    Based upon the input given by the user the logo should change dynamically.
    Client has many companies, but they are having common payroll so when they are running the payslip based upon the company the logo should print.
    could any one please suggest  how to so this?
    With Regards,
    Thanesh

    Hi Thanesh,
    There are two possibilities either create a 'Z' one or go through standard one. I prefer you to try the standard one.
    Have a look on this link.
    [Add logo in PE51;
    Hope this will solve your problem.
    Regards,
    Gaurav

  • Add userfields to document ?

    hi,
    does anybody knows how i can add userfields to documents by DI ? Some code snipets would be nice.
    thanks
    Markus

    Hi,
    You should use the object UserFieldsMD object to add userfields to a system table.
    You must know the name of the table representing your document and then follow the code I show you here:
    Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
    '// the meta-data object needs to be initialized with a
    '// regular UserFields object
    oUserFieldsMD = pCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
    '// Setting the Field's mandatory properties
    oUserFieldsMD.TableName = "TABLENAME"
    oUserFieldsMD.Name = "MyFieldName"
    oUserFieldsMD.Description = "My Field Description"
    oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
    oUserFieldsMD.EditSize = 20
    '// Adding the Field to the Table
    lRetCode = oUserFieldsMD.Add
    Hope it helps
    Trinidad.

  • Add atributes to mail forms

    Hi,
    I need your help to know how can I have more available attributes to insert automatic information fields in mail forms. The information fields I need are related with ICWC context fields. So, how can I do it?
    Thanks in advance,
    Nuno Moreira

    Hi Nuno,
    please have a look at:
    SPAM -> CRM -> Marketing -> Marketing Planning and Campaign Management -> Personalized Mail -> Maintain Scenario for Mail Forms
    and
    SPAM -> CRM -> Marketing -> Marketing Planning and Campaign Management -> Additional Business Add-Ins (BAdIs) for Marketing Planning -> BAdI: Maintain Additional Attributes for Mail Forms Scenario
    Regards
    Gregor

  • Which dc and sc should add in build time form sld when integration uwl

    hi
    i have to create a webdynpro to show info from uwl, like follow
    IUWLService uwlService=(IUWLService)PortalRuntime.getRuntimeResources().getService(IUWLService.ALIAS_KEY);
    but i don't know which dc and sc i should add in build time form sld and use it.
    i try add UWLJWF from sld, and ?
    i develop with nwce ehp1
    thank you

    1) tc/je/security/api
    2) tc/je/usermanagement/api
    from ENGFACADE.
    3) tc/kmc/bc.uwl/api
    from UWLJWF

  • Add license fonts with Form Server

    How to add license fonts to Form Server?

    Hi,
    I dont know if it is possible with java command but it is possible to add through web application.
    I tried it long back on XI R2 SP2.
    BO provide classes like:
    ILicenseKey
    ILicenseKeyBase
    see if you can take help of these classes.
    setLicenseKey
    void setLicenseKey(java.lang.String newLicenseKey)Sets the license key value for a new license key.
    Parameters:
    newLicenseKey - A String containing a new license key value.
    For more information
    https://www.sdn.sap.com/irj/boc/sdklibrary.
    Thanks,
    Praveen.

  • Add userfields to system table error!

    hi,when I add userfields to system table such as "PDN1",it's fail.Code like bellow:
      ufmd = (UserFieldsMD)diCompany.GetBusinessObject(BoObjectTypes.oUserFields) ;
      ufmd.Name = "field1" ;
      ufmd.TableName = "PDN1" ;
      ufmd.Description = "descr" ;
      ufmd.Type = ....;
      ufmd.Add() ;
      When I assgin TableName "PDN1" to ufmd.TableName,the result is :ufmd.TableName = "@PDN1".SO when add userfield to the table,the error occur:the table "@PDN1" not exist.
      When I add user fields in user table using the same code ,it's ok .
      Anybody can tell me,how to add user fields to system table? thk!

    Code below works for me (V2005A P5)
        Set sboUserFieldsMD = sboCompany.GetBusinessObject(oUserFields)
        sboUserFieldsMD.TableName = "PDN1"
        sboUserFieldsMD.Name = "AZU_TEST"
        sboUserFieldsMD.Description = "Test"
        sboUserFieldsMD.Type = db_Alpha
        sboUserFieldsMD.EditSize = 10
        lngRetCode = sboUserFieldsMD.Add
    If you are getting problems with "PDN1", try replacing it with any of "ADO1", "RDR1", "DLN1", "INV1" - adding a field to any of them has the same effect as they are all marketing document lines.
    John.

Maybe you are looking for

  • Spam email via my iPhone and iPad

    Hi - trying to find a fix to this problem. Even though I have my email filters set up on both my computer and on my verizon.net account, I am getting spam via my email on both my iPad and iPhone. This spam never makes it into my home mail account or

  • NotActiveException when Using ObjectInputStream

    package serialization; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.NotActiveException; import java.io.ObjectInputStream; import java.io.ObjectOutput

  • AP-Specific WLAN-VLAN Mapping audit

    Is there anyway to audit the access points in FC mode to determine the WLAN-VLAN mapping and if it is AP or WLAN specific? or Is there a script that I can run to make the WLAN-VLAN mappings on all FC mode APs AP-Specific?

  • SEM-BCS: total transfer

    Hello, I need help. Scenario: Two companies will be merging as one and falls under the same cons group. Is total transfer (under COI) the correct activity to use? If yes, please help share what are the different settings, changes, financial data, so

  • File Input Area ---- Thumbnail

    Hi, I have file input area of a form that users use to upload pictures. I would like it to have an area beneath to show a thumbnail of the picture they've just selected. Does anyone know how I would accomplish this? Thanks!