Problem creating script object

I´m very new at LiveCycle and I haven´t been able to create a function to accomplish a very simple thing because I guess I´m missing something.
What I want to do is to call a function in the mouseup event that just sets the rawValue of a Text Field to my name.
I have the following:
---- form1.#variables[0].rawval - (JavaScript, client) ---
function setname(field){
field.rawValue = "Jose";
----- form1.TextField1::mouseUp - (JavaScript, client)
xfa.form.form1.variables.rawval.setraw(this);
I don´t know why nothing is working when referencing the field. Is this incorrect?
Thanks

You're calling "setraw", but the function is called "setname". Try just rawval.setname(this);

Similar Messages

  • Problem creating Cipher object using getInstance

    Hi all, Can anyone please help me with this? I am using jdk1.4 which has jce. I have put jce.jar jars in classpath. When I create Cipher object like
    Cipher itsocipher1 = Cipher.getInstance("DES");
    it compiles fine but when I exicute it get following error java.lang.NoSuchMethodError at javax.crypto.SunJCE_d.a(DashoA6275) at javax.crypto.SunJCE_d.a(DashoA6275) at javax.crypto.SunJCE_d.verify(DashoA6275) at javax.crypto.SunJCE_b.f(DashoA6275) at javax.crypto.SunJCE_b.<clinit>(DashoA6275) at javax.crypto.Cipher.getInstance(DashoA6275) at EncryptDecrypt.main(EncryptDecrypt.java:26) Please Guide. Thanks.

    Copy the jce provider's jar file ( if using SunJCE, then copy sunjce_provider.jar file) to jre's lib/ext directory.
    You can also see in the java.policy file where the jvm is looking for the jar files.
    grant codeBase "file:${java.home}/lib/ext/*" {
    permission java.security.AllPermission;
    };

  • BC4J: problems creating view object with multiple entity objects

    Hi,
    I working with a view object which contains two entity objects with parent-child relationship like this:
    ViewObject - ParentEntityObject - PId
    PAttribute
    CId (FK)
    (- ParentChildAssociation)
    - ChildEntityObject - CId
    - CAttribute
    The 'Read Only' and 'References' options are checked for the association in the view object.
    I'm creating a new row using this view object. The parent object should be created new and the child object already exists in the database, so I'm setting only the attributes of the parent object (including foreign key).
    After creating the row I display it in a jbo:DataTable and only those attributes coming from the parent object are displayed. The attributes of the child object are not set. After a commit all attributes appear.
    The problem is, that I want to display the new row with all attributes to the users BEFORE they commit.
    I tried to set the child attributes, but they are read only by definition and even when I unchecked the 'Read Only' option and set the attributes to 'Always Updateable' in the view object it is giving me
    JBO-27008: Attribute set for CAttribute in view object ViewObject failed.
    Is there a way to make all attributes of the child object visible in the view object without committing changes?
    (JDev 9.0.2.822)
    Any help would be appreciated.
    Regards,
    Christian

    Once again the structure, sorry.
    ViewObject
    |-ParentEntityObject
    ..|-PId
    ..|-PAttribute
    ..|-CId (FK)
    |-ParentChildAssociation
    |-ChildEntityObject
    ..|-CId
    ..|-CAttribute
    Christian

  • Problem Create System Object in the Portal for connecting CRM abap

    Hi, i creating system in the portal (JCX) for connecting system ABAP CRM (CRX), after create system try run test connection and show messages error:
    Test Connection with Connector
      Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
      Results
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly
    In the logs the portal (NWA) show messages:
    Failed in creating the JCO Connection.
    The logs operation system (log Security_audit.log)
    Error> occured  >Thu Jun 23 11:34:41,278<RfcException: message: 'mshost' missing  Return code: RFC_INVALID_PARAMETER(19  Return code: RFC_INVALID_PARAMETER(19)    error group: 101 key: FC_ERROR_PROGRAM
         at com.sap.mw.rfc.api.RfcOptions.checkParameters(RfcOptions.java:438)
         at com.sap.mw.rfc.api.RfcApi.RfcOpen(RfcApi.java:688)
         at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1079)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:3256)
    Plase help, any idea?

    message: 'mshost' missing Return
    During the System Object Creating in System Landscape, there is any entry as Message Server Host: CRM MS HOST
    and Message Server Port : sapmsSID and add this entry in etc/services --> bottom samsSID 36NN/tcp where NN is instance number.
    Try this and let me know.
    Thanks
    SM

  • Keychain Services API, problem creating Access Object

    Hello,
    So I am trying to add a keychain and also set an application to have access to this keychain.
    In the SecAccessCreate() you're supposed to pass it a CFStrigRef, which is where I have been having a problem really.
    char myDescriptor[] = "My Application";
    CFStringRef myCFStrRef = CFStringCreateWithCString( NULL, myDescriptor, 0x08000100 );
    Then I pass that to my SecAccessCreate() but I always seem to be getting a segmentation fault.
    I appreciate any help,
    Smerky

    Smerky wrote:
    0x08000100
    Use the constants defined in the header files. They exist because nobody can read this.
    Also be aware that CFString and NSString are toll-free bridged and therefore completely interchangeable.

  • Script Objects

    Hi,
    I create scripts Objects for a form and it works.
    I create scripts Objects for an other one and it doesn't work, however it is the same Objects.
    In my subform I click on Insert Script Object and rename it "format". I create two functions :
    function test(){
    xfa.host.messageBox("hello");
    and
    function minMajLogin(tfield){ //(Met les deux premières lettres du login en majuscules et le reste en minuscules)
    xfa.host.messageBox("hop");
    var chaine;
    var majuscule;
    chaine = tfield.rawValue.toLowerCase();
    majuscule = chaine.substr(0,2);
    majuscule = majuscule.toUpperCase();
    chaine = chaine.substr(2,chaine.length);
    tfield.rawValue = chaine;
    I call them with : format.test(); and format.minMajLogin(this);
    My form is a dynamic pdf form, the language is javascript and it runs at client.
    Can you help me ?
    Thank You

    I copied and pasted your functions and they work for me. If you are runing acrobat you can hit the Ctrl-J key to show a javascript console and see if there is an error generated.
    If you post your email address I can email back the working example I created.

  • Problem creating simple Script Object

    I have not been able to get this simple Script Object to work. It should be simple, but this is my first script object, and as I'm new to LS and JS I'm not very adept at writing JS (functions, variables, you name it).
    Would someone be so kind as to help me get this easy one down so I can study it and see where I went wrong?
    What this script object would do is call a function that checks the value of two check boxes. If one checkbox's value = 1 then the textstring "Male" gets written to the lower text box. If the other box's value = 1, then "Female" is written to the same box (and of course, Male is deleted)
    Thanks!
    Graham

    Hi Graham,
    Adobe Reader using the same JavaScript engine as used by Mozilla (called SpiderMonkey) and their website has a lot of information about learning and using JavaScript, https://developer.mozilla.org/en/JavaScript. Only problem is Mozilla has moved on to version 1.8.1 and I think Reader is still on 1.5, but they make it easy to work out what features are available in what version.
    Array literals are good if you aren't going to reuse them, maybe a better alternative would be to reference the captions of the checkboxes or radiobuttons.
    Bruce
    Writing ["", "MaLe", "FemaLe"] creates an array literal so I could have written something like;
    var 
    genders = new Array("", "MaLe", "FemaLe");
    var  gender = Number(Gender.rawValue);this.rawValue
    = genders[gender];

  • Creating callable object+ authorization problem

    Hi,
    I am following the tutorial to create the first process (GP). I assigned all designtime specific roles. I can now  create a content package object. But when I try to create the callable object, I come across the following error:
    You are not authorized to start the design time
    What going wrong! A quick reply will be appreciated!
    Mayukh

    I restarted the server. But the problem persists.
    Let me give more details:
    It says :
    YOU CAN
    and then the following list
    Create Action  #
    Create Callable Object #
    Create Process #
    Create Object View
    Create Block #
    Create Content Package Object
    Create Simple Process
    Create Process by Semantics
    The problem is with the ones I marked as # and for the others it works fine.
    I assigned the role : designtime_all and all other roles where the term designtime occurs.
    Namely:
    UME com.sap.caf.eu.gp designtime.businessobject
    UME com.sap.caf.eu.gp designtime.admin
    UME com.sap.caf.eu.gp designtime.process
    UME com.sap.caf.eu.gp designtime.callableobject
    UME com.sap.caf.eu.gp designtime.logicalcriteria
    UME com.sap.caf.eu.gp designtime.businessobject
    UME com.sap.caf.eu.gp designtime.admin
    UME com.sap.caf.eu.gp designtime.process
    UME com.sap.caf.eu.gp designtime.callableobject
    UME com.sap.caf.eu.gp designtime.logicalcriteria
    UME com.sap.caf.eu.gp designtime.translation
    UME com.sap.caf.eu.gp designtime.cpkgobject
    UME com.sap.caf.eu.gp designtime.ertemplate
    UME com.sap.caf.eu.gp designtime.all
    UME sap.com_tclmwebadmin~permissions Applications_Start_Stop
    Phew!
    Mayukh

  • Problem creating Object Proxy

    Hi Gururs!!
    I want to create an object Proxy through SE80 using a WSDL file. When I try this, I get the error message:
    <i>"Cannot generate proxy (object schema missing in WSDL).</i>
    I think the conflictive part of the WSDL is:
    - <s:element name="GetProductServiceCodeResponse">
    - <s:complexType>
    - <s:sequence>
    - <s:element minOccurs="0" maxOccurs="1" name="GetProductServiceCodeResult">
    - <s:complexType>
    - <s:sequence>
    <b><s:element ref="s:schema" /></b>
      <s:any />
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:sequence>
      </s:complexType>
      </s:element>
    Is possible that the element ref is not supported by NetWeaver 2004s?
    Helpful answers will be rewarded.
    Thanks in advance and regards,
    Manuel.

    Problem Solved !
    Put server aliases in SICF.

  • Running a SQL Script to Create an Object Type

    When I do Database Development with JDeveloper and fellow the instruction at
    http://www.oracle.com/technology/obe/obe1013jdev/dbdevelopment/obe_%20dbasedevmt.htm
    and try to Running a SQL Script to Create an Object Type by Right-clicking emp_rec.sql in the editor and
    choose Run in SQL*Plus > hrconn, the new Obuect type can not created. The screen flashs and I only got the
    message
    "Invoking SQL*Plus...
    D:\oracle\product\10.2.0\db_1\BIN\cemutls.exe
    hr@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=ORCL)))
    @emp_rec.sql" and nothing else (No error like JBO-XXXXX).
    Can anybody Help Me? Thanks a lot!
    SID: ORCL

    Hi Simon,
    Having had a closer look at your original message it seems that rather than selecting the SQL*Plus executable in the directory you have managed to select the file 'D:\oracle\product\10.2.0\db_1\BIN\cemutls.exe'.
    If you go to 'Tools | Preferences' and select the 'Database Connections' node and alter the 'SQL*Plus Executable' field to 'D:\oracle\product\10.2.0\db_1\BIN\sqlplus.exe' and then try again, this should then work.
    Regards,
    Lisa

  • Reflection problem: Creating Objects

    The Reflection Tutorial mentions this line "Fortunately, with the reflection API you can create an object whose class is unknown until runtime" but the examples given are hardcoding the classnames!!!
    Here is the example given
    class SampleNoArg {
    public static void main(String[] args) {
    Rectangle r = (Rectangle) createObject("java.awt.Rectangle");
    System.out.println(r.toString());
    static Object createObject(String className) {
    Object object = null;
    try {
    Class classDefinition = Class.forName(className);
    object = classDefinition.newInstance();
    } catch (InstantiationException e) {
    System.out.println(e);
    } catch (IllegalAccessException e) {
    System.out.println(e);
    } catch (ClassNotFoundException e) {
    System.out.println(e);
    return object;
    now how do i create a object at runtime without 'really' knowing what its class is. The following will definitely not work and am providing it as additional help in making others understand my problem.
    String cName = c.getName(); // fully-qualified name
    Object o = c.newInstance();
    if ( ( (cName)o).compareTo(...) ) {...}
    // where it is assumed that c is a Class i got previously, and that the class implements the Comparable interface.
    So anybody has any idea on how to do this? Thanks in advance.

    If you're talking specifically about comparing Objects that may or may not implement comparable, I suggest you create your own Comparator implementation that will work with any of the objects you are expecting to create.
    If you are talking about executing methods on general objects, there are two cases:
    1. Your object implements a known interface. In this case, you can check for this, using instanceof, and cast the object in order to call the required method.
    2. Your object should have a known method. In this case, use Class.getDeclaredMethod to retrieve a Method instance, and then execute that.
    RObin

  • Updation problem while creating multiple objects from enterprise portal

    Hi All,
    From enterprise portal i am calling an RFC 'BAPI_PROJECT_MAINTAIN' to create objects .
    While trying to create multiple objects simultaneously it gives error "sapuser is currently using, can't be created".
    It seems like as i am creating multiple objects by calling RFC repeatedly , while the first one is not updated fully i am sending the second value to be processed.
    Pl. tell me how to overcome this. Do I need to add any sleep time in EP or any other method is there in SAP to overcome this situation.
    thanks
    sandeep

    Dear Sandeep,
    I have discussed this problem with EP team lead in my organisation, i have given your email id to him he will forward the solution on your id.
    If usefull reward points helpfull....
    Regards,
    Rajneesh Gupta

  • Problem in creating new objects in ABAP workbench

    Hi ,
        I am getting error in a newly installed SAP system when try to create new objects in ABAP workbench. The error is like'No changes for the user allowed'.
    Can you tell me what the error is here? What can be done for this so that I can create new object.
    Thanks,
    Manas

    Hi,
    Run tcode SU01. (Provided if u hav authorization to run this Tcode)
    Enter SAP* as user and click on the Copy button.
    Enter the name for your new user in the dialog box and click Continue
    Enter a password for your new user.
    Goto Profile sheet and adjust the profiles to be SAP_ALL and SAP_NEW.
    Save the user and logon with it.
    Now you'll be able to do your changes.
    Reward Points if useful.
    Regards
    Rose
    Edited by: Rose Preethi on Mar 31, 2008 5:20 PM

  • Problem when creating new Objects in ESR

    Hi ,
    When i am trying to create new objects in ESR it is no allowing me to do,i have developed around 80 interfaces as of nowmsuddenly this eeror i getting,anyone experienced this kind of issue.
    *You cannot create new objects since the system is not the original system of the software component version*
    You cannot create new objects since the system is not
    the original system of the software component version (NOT_ORIGINAL_NO_CREATE)
    MESSAGE ID: com.sap.aii.ib.server.oa.rb_all.NOT_ORIGINAL_NO_CREATE
    Regards,
    Raj

    Hi Raja,
    I am new to SAP PI. So i dunno much regarding SAP PI. Hence i am getting same error that not able to create objects in SWCV. I read this discussion but i dunno where to select the 'Modifiable & Original' options, so that i can enable the Objects. Can you please guide me?
    Thanks,
    Amarnath

  • Insert Script Object?

    In Acrobat Pro you can create a document script as follows:
    function Hello()
    app.alert("Hello World")
    And call this Hello.
    If you create button on the page then create an action on Mouse Up Run a JavaScript which looks like this:
    Hello();
    A message box appears saying Hello World click OK and press the button and it keeps coming back.
    Now in Designer this is a little different.
    I create a new page, insert a script object rename it to Hello and type:
    function Hello()
    app.alert("Hello World")
    I then create a button and on the mouse up action type;
    Hello();
    If I try this I get the following mesaage:
    TypeError: Hello is not a function
    1:XFA:form1[0]:#subform[0]:Button1[0]:mouseUp
    Why is it so?
    Even removing the script object and going to the Form properties Variables tab and entering the function script there does not seem to work.

    Thanks Steve,
    It works without a hitch. Im still getting my head around JavaScript and 2 weeks, 6 hours a day of reading and testing and reading is slowly getting clearer I think.
    Just to make sure Im getting this clear in my head. The way I had the script before was when it was applied to the field that showed the value it was referring to this as the field itself. So it worked not worries because it was point to the itself.
    When I tried to apply the same script in a script object field (variables) that the whole documents can reference it was only in as a variable. The line form1.variables.setTotals.Totals(); did not do anything because it did not see the totals as a function and refer to it, and as a result nothing would appear in the filed. By adding obj to the script it tells the form that its an object and the objects formula is spei1 + spei2. This now means that the script can be applied to any filed and that is where form1.variables.setTotals.Totals(this); comes in. It tells the filed apply the object (Totals [spei1 + spei2] ) to this filed.
    Does this mean that any script placed in the Variables field needs to be referred to as objects?
    The reason I was taking this approach was to resolve a problem posted earlier.
    I thought by having the script as a script object that was applied to the document rather than the field it would update the other fields that refer to it. Which I now realize will not happen. Could you suggest a conditional statement that I could put in to:
    If special item 1 = $12.00 the result in the total = $12.00. If I then click on one of the fields in the special column say in Monday for example the result should be $12.00. If I then decide to enter another $12.00 in special item 2 the total will now be $24.00 but the Monday result will still say $12.00.
    Is there a way to have it check that it the figure which may appear in the Special column, to update that result as well?
    Should I be look at a message box instead telling the user there is a difference and for them to re-click on the Monday field to update it?
    Any suggestions would be appreciated.
    Regards, John.

Maybe you are looking for

  • Dock and finder not accessible after 10.5.8 update

    I updated my aluminum imac through the software update last night, unaware that I had only a few GB free space on the hard drive. Right after it restarted, it says the dock has crashed, and gives me the option of Ignore, Report(?), Relaunch. I select

  • Swipes in Safari stop working

    When using Safari in Mavericks, I can scroll up and down as usual with the 2-finger gestures, but if I try to do a 2-finger "back" swipe to go to the previous page that page freezes (can't scroll at all, no links respond and if try to click on the ba

  • I bought a new iPod nano and cannot get the music synced

    I just purchased a new Ipod nano and registered it and upgraded the software. I cannot get the music library to sync.  My music is in the cloud.  any advice on what I am missing?

  • Apple TV does not display Watch ESPN activation code

    Hi. I am trying to activate Watch ESPN on my Apple TV and the app does not display an Activation Code.  There is a big, blank space where one would logically think an activation code could fit but, unless it is written in black text on a black backgr

  • Roxio Media Manager - Edit with Quick Sound Editor

    A gentleman at work purchased a pearl 8130 last week after he lost his other phone. After loading BlackBerry Desktop Manager, CD that came with the phone, then going to Media Manager. He noticed that Quick Sound Editor was grayed out if he right clic