Change the Summary Attribute Value through Java code

Hi ,
I am working on a requirement where I need to set the Attribute value on the final Summary Screen through Java Code.
Code :
        InterviewUserData data = new InterviewUserData();
        InterviewEntityInstance globalInstance = data.getGlobalInstance();
        globalInstance.setValue("Name", value_to_set);
On completion of the interview session Name is displaying as NULL.
I need to set NAME = value_to_set and display it on the final summary screen.
Any help on this will be appreciated.
Regards

The InterviewUserData object is effectively a change set, to apply this to a session you use the InterviewSession.submit(InterviewUserData) method. You don't say how you are invoking this code but if it's inside an event Interview Engine handler the InterviewSession object should be accessible.
Regards
Ian

Similar Messages

  • Connecting to the Oracle 10g Database through Java code

    I have a Oracle 10g database to be connected to.
    Through sql plus, I can connect to it using the following command
    sqlplus "sys@pmi as sysdba"and password is 'password'
    how do I connect to this db through my Java code?
    I tried
    _connection = DriverManager.getConnection("jdbc:oracle:thin:@10.245.4.100:1521:pmi as sysdba", "sys", "password");but it gave the exception "ExceptionIo exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))"
    I also tried
    _connection = DriverManager.getConnection("jdbc:oracle:thin:@10.245.4.100:1521:pmi", "sys", "password");but this gives the exception "ExceptionORA-28009: connection as SYS should be as SYSDBA or SYSOPER"
    Can anyone please help me in writing the line of code

    You need to use the getConnection syntax that requires a Properties object.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#05_05
    - cafal

  • Change the field attribute of a field in data source - 0CRM_SALES_ACT_1

    Hi ,
    I have a data source named 0CRM_SALES_ACT_1 in CRM system.
    The fields PLANNED_TS_FROM and PLANNED_TS_TO are hidden fields i.e. the field attribute is 'A' - Field in OLTP and BW Hidden by SAP.
    Following are my doubts:
    1. Whether the values of these fields will be extracted into BW or it will not be?
    2. How do I change the fields attribute value of these fields(its standard data source)?
    3. Is there any SAP note to do this ?
    4. If the above doesn't exisits, then should I go for a append structure to the standard data source?
    Please help me.
    Regards,
    Ahmed.

    Hi,
    U can unhide ur fields in RSA6 and then replicate the datasource in BW. These fileds will come in BW.
    You cant change the attribute value for STD DSO.
    No SAP note for the same.
    You can append the datasource with the new fields with the attribute you want and hide the std. fields then goto BW and replicate it. You can then map it with the BW fields as you want.
    *Assign points if helpful.

  • How to update OID oblogintrycout attribute through java code

    Hi Team,
    As per my requirement ,i need to update OID oblogintrycout attribute through java code. could you please help me on this.
    where can i get the java code.
    Regards,
    Ravi.

    As always, Google is your friend.
    Follow the bouncing link.
    http://www.google.com/search?hl=en&q=VisualSourceSafe+%2B+Java+API
    PS.

  • Can we change the View attribute of the Switcher through PERSONALISE PAGE?

    Can we change the View attribute of the Switcher through PERSONALISE PAGE? I want this switcher to display another column. This switcher that i want to change is a seeded one. I have extended a VO and added a new attribute. I want this Switcher to display this new attribute. How can I acheive this.
    Regards
    Ali

    When I do exactly that I get a .XLS file that when you open it and click Save As comes up in Single Web Page mode. When I change the type I get a much smaller file. I am doing exactly what you describe, but with different results. Is it possible that this is configurable?
    Here is a screenshot of me exporting:
    http://i879.photobucket.com/albums/ab359/jameyweare/problem1.gif
    Here is the properties of the file. As you can see the size is 215kb This is actually a very small query for for demonstration purposes. I have queries that return 20k rows with 10 to 15 columns. This creates a spreadsheet that is over 20MB.
    http://i879.photobucket.com/albums/ab359/jameyweare/problem2.gif
    This next screenshot is of the Save As dialog from Excel. I have highlighted the file type that the file is currently saved in.
    http://i879.photobucket.com/albums/ab359/jameyweare/problem3.gif
    In this screenshot I have changed the file format.
    http://i879.photobucket.com/albums/ab359/jameyweare/problem4.gif
    Here is the new properties. The file size has decreased to 57.5kb. In the cases where I had files that were 20MB or greater (and took aver 10 minutes to open up), this process reduced those files to about 200kb.
    http://i879.photobucket.com/albums/ab359/jameyweare/problem5.gif
    Any help on this would be appreciated.
    Edited by: Jaime Weare on Jul 17, 2009 3:38 PM

  • Adding rows to J2ME WTK/Settings/User Defined (through Java code)

    Hi all..
    Just a quick question..
    Is it possible to add Key/Value pairs to a MIDlet's 'User Defined' field through Java code..(ie) - add a new row to the User Defined field..
    If not, can anyone tell me how a Bluetooth-Client GUI can save an image it has been sent by a Bluetooth-Server GUI?
    Thanks in advance..
    Rookie

    if i understand you, you want to call application module method when user clicks on add button on the UI and your table is from VO
    so what i can come up for now is:
    1) create variable binding from the iterator for both name and price.
    2) on your UI action button :
    <af:commandButton actionListener="yourbean.addToCart">
    <f:attribute name="pName" value ="binding.<created name bind variable>"
    <f:attribute name="pPrice" value = "binding.<created price bind variable>"
    </af:commandButton>
    3) custom Managed Bean:
    //yourBean.java
    public void addToCart(ActionEvent e){
    // get binding here
    // use executeWitParams method to send parameter to the function "testMethod" and execute
    //AppModuleImp.java
    public void testMethod(String pName,String pPrice) {
    CardVOImpl vo = this.getCartVO1();
    CardVORowImpl r = (CardVORowImpl)vo.createRow();
    r.setAttribute("NAME", pName);
    r.setAttribute("PRICE", pPrice);
    vo.insertRow(r);
    Hope this helps...
    Let me know if not..
    Thanks
    Edited by: MavenDev on Oct 30, 2011 8:08 PM

  • Error while changing the PO BOX value for a Business partner

    Hi Friends,
    We are getting an error when we try to change the PO Box value for a Business Partner.
    We have the dependency like when we give the value for the PO Box we also need to give the postal code value. And also we have a specific format for the Postal code. We gave both the values (a valid postal code) and try to save the details, then error message "The attribute GUID of Organization (a Contact Person is assigned to) of the Business Object contact person is not valid" is displayed. We have no clue why there is a conflict for the contact person details.
    Can any one suggest the reason for this?
    Thanks & regards,
    Swarna Seeta

    Hi Swarna,
    You are getting this message not because you have entered wrong Post code .It will come even if you try to change some other field and save it. This is because on saving a business object, the framework tries to validate all the associated objects depending on the relation.In this case the data in the mobile client is either not present or is no longer valid.
    Check if the field of the Business object which is being shown as invalid, has some data in the table. Check the combo associated to it and from where the combo is doing the validation. The table from where the combo is doing the validation does not have that data and so the value is invalid.
    Also compare the number of entries in smokna1sht table in ides and in CDB.
    Regards
    Vivek

  • How to change the groupType attribute of a user group object?

    I'm trying to change the "groupType" attribute, of a user group object, from 'Distribution' to 'Security' (and the group scope is set to 'Global').
    The CAD bit mask value needed would be: 0x80000002 (Decimal -2147483646).
    How to change/modify the "groupType" attribute for this user group object?
    Thanks,
    UD

    Attribute attr= new BasicAttribute("groupType", "-2147483646");
    items[0]=new ModificationItem(DirContext.REPLACE_ATTRIBUTE, attr);
    ctx.modifyAttributes(dn, items);
    --does not work.
    javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 00002141: SvcErr: DSID-031A0B56, problem 5003 (WILL_NOT_PERFORM)
    Is it possible to modify it?
    Thanks,
    UD.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Passing parameters to Widgets through Java code

    hi,
    i want to pass parameters to yahoo widgets through java code. Eg, if we consider yahoo weather widget, then i have to pass the parameters country through java code. i also have to read the output given by widget through java code (which in this case is the weather for all the days for the current week).
    This is an extremely urgent requirement, so quick and helpful reply will be highly appretiated.
    thanks in advance

    Hello,
    Did you try passing through the URL
    eg: http:
    test.html?a="test"; and use some request open to get the values from the url.
    HTH
    Vivek Nidhi

  • The type '*', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element * could not be found

    I have a provider hosted app in sharepoint which works locally without problem. I followed this tutorial to publish it to azure
    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/09/05/how-to-deploy-a-provider-hosted-app-as-an-azure-site.aspx
    However after publishing the webservice doesnt work I get this exception:
    [InvalidOperationException: The type 'x.IntranetWeb.Services.AppEventReceiver', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.]
    System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +62739
    System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +1429
    System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +52
    System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +598
    [ServiceActivationException: The service '/Services/AppEventReceiver.svc' cannot be activated due to an exception during compilation. The exception message is: The type 'x.IntranetWeb.Services.AppEventReceiver', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found..]
    System.Runtime.AsyncResult.End(IAsyncResult result) +486572
    System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +174
    System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar) +345998
    System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +9683593
    My web.config which I didnt touch.
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=301880
    -->
    <configuration>
    <appSettings>
    <add key="webpages:Version" value="3.0.0.0" />
    <add key="webpages:Enabled" value="false" />
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
    <add key="ClientId" value="xx-04e7-4caf-854a-89c20577d7da" />
    <add key="ClientSecret" value="ljguTvxHR+xx+Pl1IMg1Hjt5rsQ=" />
    </appSettings>
    <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <customErrors mode="Off"/>
    </system.web>
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
    <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-5.2.0.0" newVersion="5.2.0.0" />
    </dependentAssembly>
    </assemblyBinding>
    </runtime>
    <system.serviceModel>
    <bindings>
    <basicHttpBinding>
    <!--Used by app for SharePoint-->
    <binding name="secureBinding">
    <security mode="Transport" />
    </binding>
    </basicHttpBinding>
    </bindings>
    <protocolMapping>
    <add binding="basicHttpBinding" scheme="https" bindingConfiguration="secureBinding" />
    </protocolMapping>
    </system.serviceModel>
    <system.webServer>
    <handlers>
    <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
    <remove name="OPTIONSVerbHandler" />
    <remove name="TRACEVerbHandler" />
    <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
    </system.webServer>
    </configuration>
    and a piece of the code of the remote event receiver
    <%@ ServiceHost Language="C#" Debug="true" Service="x.IntranetWeb.Services.AppEventReceiver" CodeBehind="AppEventReceiver.svc.cs" %>
    namespace x.IntranetWeb.Services
    public class AppEventReceiver : IRemoteEventService
    Follow me on Twitter
    levalencia Blog

    Hi,
    The issue here is the mapping of the interface to the service in question, and usually points to a possible mistype or rename of something within your service architecture.
    You need to make sure your namespace and service name here match your service name itself.
    For detailed information, you could refer to:
    https://haddicus.wordpress.com/2011/06/06/service-attribute-value-not-found-wcf-services/
    http://stackoverflow.com/questions/9557221/the-type-restservice-weddingservice-provided-as-the-service-attribute-value-i
    Regards

  • Unable to change the order quantity value during save of sales order

    Hi Experts,
    There is a need to change the order quantity value, based on some conditions, when pressed 'ENTER' or during 'SAVE' of the sales order (VA01, VA02).
    We are trying to change the order quantity value (KWMENG) in table XVBAP in the subroutines userexit_field_modification, userexit_save_document and userexit_save_document_prepare of the user exit 'MV45AFZZ'. But the change is not replicated to field on GUI.
    The order quantity value can be changed in subroutine 'userexit_move_field_to_vbap', but the subroutine is not getting triggered when user changes only the order quantity on screen.
    Please help us in resolving this issue.
    Regards,
    Santosh

    Thanks for your time guys. The issue is resolved.
    SAP is not triggering the vbap user exit as the order quantity on screen is in structure RV45A.
    There are two ways of resolving the issue.
    1. Implement the SAP note #513342 - Quantity change and USEREXIT_MOVE_FIELD_TO_VBAP. But, it is SAP modification note.
    2. Write the code in VBEP exit of MV45AFZZ. This user exit is called whenever the order quantity is changed. But, it is called multiple times in some cases. Hence, need to write code to limit our code execution only once e.g. maintain a global table with our quantity & uom. Check when the quantity and uom in our table is same as quantity on screen. If not, exit from user-exit.
    Edited by: Santosh Kacham on Nov 11, 2011 6:37 AM

  • Running windows command through java code

    Hello
    i want to execute jar.exe through java code , i have written following piece of code , but it isn't working
    ProcessBuilder processBuilder = new ProcessBuilder(new String[]{"cmd.exe","/c","%java_home%\\bin\\jar.exe"});
              Process process = processBuilder.start();
              BufferedReader inputReader = new BufferedReader(new InputStreamReader(process.getErrorStream()));
              String line = inputReader.readLine();
              while(line != null){
                   System.out.println(line);
                   line = inputReader.readLine();
    does anybody knows why
    Regards
    Edited by: Mayur Mitkari on Mar 5, 2013 10:19 PM
    Edited by: Mayur Mitkari on Mar 5, 2013 10:20 PM
    Edited by: Mayur Mitkari on Mar 5, 2013 10:20 PM

    sorry for that , but the
    Runtime runtime = Runtime.getRuntime();
              Process proc = runtime.exec(new String[]{"cmd.exe","/c","jar"});
              proc.waitFor();
    int i = proc.exitValue();
    this code was different from first one
    and in case of Process if runtime .exec is succesful it is wainting for long time , in this case i want if the runtime.exec is succesful something should be returned
    Regards

  • How to pass attribute values through variables in JSP  Custom TagLib

    Hi,
    Can anybody help me how to pass values through varuables in the jsp custom tag.
    i am using JSP custom tag. I am unable to pass attribute values through variables.
    <invitation:invdetails invid="<%=invid%>"/> The value is passing as <%=invid%> ,not value of the invid.
    But i am getting throuh the fllowing
    <invitation:invdetails invid='1' />
    Please anybody suggest me how to pass value by using the variable.

    Hi,
    It sounds like you need to set the <rtexprvalue> tag to true in the TLD for your tag. If you do this the tag will read in the value you are trying to pass to it.
    dapanther...

  • Changing the roosfield  table values , will affect in upgradation??

    Hi all,
    I am working on bw with crm.I need to modify the 0sales_act_1 extractor . i found that one field is available in extract structure but it is not available in extractor(data source) e.g.. like created by and changed by fields. I need to populate values for the fields. so i checked and found one way that i modified the <b>roosfield</b> table. (by changing the selection field value from <b>A TO NULL</b>. Now the extractor is working fine. I did it using the following code.
    REPORT  ZSALES_ACT_1                            .
    Tables : ROOSFIELD.
    ****to change the "changed by" visibility
    select single * from roosfield where
            OLTPSOURCE = '0CRM_SALES_ACT_1' and
            OBJVERS = 'A' and
            FIELD = 'CHANGED_BY'.
    roosfield-selection = ' '.
    modify roosfield.
    >> What my question is , is it recommended way to modify data source by SAP. or
    Is there any other way to modify the data source. I need to bring those two fields in extractor .
    (if u can't understand this,  let me know,  i will send u the screen shot.
    >> what will be the effect of this on upgradation and transportation??
    Thanks in Advance
    Arun Thangaraj
    <b></b>

    Hi dear,
    about what you are referring to, I think I have some responsibility (since I think I was the first to post such a code in SDN in order to modify extraction settings)...
    Anyway, SAP suggested a similar method only for peculiar cases (and for specific datasource/field) in some OSS Notes, but it is an unorthodox way..the problem is that there is no other way to follow, so...
    Don't worry about upgrade (even if a little test is always recommendable...)
    Bye,
    Roberto

  • How to Increase Java Heap Size through Java Code. Increase inside Code?

    Hi All,
    I am using a third party tool. When i run a particular program it says OutOfMemory error. I like to increase heap size through Java Code before calling the particular Java application or Code..
    Is there is any way to set the Heap Size through Java Code in run time ???
    Pls Kindly help.
    Thanks.

    if you start the program with a -Xmx512m flag, the virtual machine gets half a gigabyte of memory to use (or that's the max it's allowed to use). All things run in the same virtual machine will have the same limit, third party tools run in the same virtual machine can't "not care about this" unless they're throwing OOMs themselves for some stupid reason.

Maybe you are looking for

  • Can't remove old contextual menu item after uninstall on package...

    Had PhoneValet installed with PhoneValet Anywhere. Support ended prior to Lion. I have run the un-installer and everything seems to be gone except two entries in the contexutal menu. When I'm in Contacts and click on a phone number I get: "PhoneValet

  • Clearing partial payments using POSTING_INTERFACE_CLEARING

    Hi I'm trying to clear partial payment of a document number. I succeeded to clear full payment but not partial. where and how should  i send the partial amount?? Thanks.

  • How to export xml information from LCD form?

    Hello All. I have created a form using LiveCycle Designer ES2 9.0.  I am currently using Acrobat X Pro to fill-in the form.  I would like to save the data as an xml file.  I have tried to SaveAs XML 1.0, but it's not correct - none of the fields and

  • Re: Invalid MAC Code?

    I am having the same problem (switching my broadband from o2 to BT and being issued an invalid mac code) and i am getting nowhere fast.  My broadband with o2 worked very well for well over a year.  The wireless router was good enough to let me son pl

  • How to have lossless music on the PC and MP3 on the ipod

    I have an ipod for the first time - and am hoping there is a way to do what I want - can anyone help? I have all my music ripped to my PC harddrive through itunes into Apple Lossess format. The itunes music libabry folder is then accessed by my Sonos