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

Similar Messages

  • Returning User Password in Java code for custom reports

    Hi I'm doing a custom report and for the life of me I can't seem to find the password field in the database. :(
    Anyways I'm thinking maybe I can use java code to return the password and then using the decrypt password function. Could someone please shed some light on this!!!
    Note: I need to return the User password using java code and not XPRESS code. It would be best if someone either shows me how you can get the password using a java method or tell me where the User password is stored as I'm going crazy trying to find it in the DB!!!
    Thanks in advance!!!

    well... not sure what your Java code does. But if you can get the WSUser object for each user, you could call getPassword on the object to get the user's password

  • How can we get requester's user id using java code

    Hi,
    How can we get requester's user id using java code?
    eg: If i had logged in as xelsysadm and request a resource for user uid101 on the userid field it should display uid101 and not xelsysadm.
    also,
    I have a resoure "A" which on revoking should also revoke resources B and C. How can it be done. Resource A, B, and C are 3 different resource objects.
    ==Thanks,
    doki

    Ok, so there is a way, but it's not available during submission. You can use the findRequests api. From the result set, get the "Requests.Consolidated Data Value" value. In this information, you will get an xml formatted data. It provides the list of users on the request on the left side after submission. After the request is completed, this value is available. Upon completion, you could get the request information, get this value, and parse the information for user ids.
    In the same adapter, use the following API:
    formIntf.setObjectFormData(objInstanceKey, formHash)
    The formHash is a hashtable containing the field name on your object form, and the values you wish to populate it with. You could create a textarea box on your object form and populate the userids for who the request is for.
    However, this makes absolutely 0 sense. When you get a request, the list of userids are listed right there on the request.
    -Kevin

  • Creating windows user account through java

    Hi,
    Is it possible to manage(create/edit/delete) windows user account through java.
    Where in the java program is used to create windows accouunt on the same machine.....
    I did that with the net command and running the net command in java.... is there any better approch to this problem
    Regds
    sandy

    I have heard something about the JDesktop, will it be
    possible if i use the JDesktop,How would I know, it's not a standard library. Go and have a look at it.

  • Row limitation for list of User Defined Values

    Dear all,
    I need to make list of User Defined Values at the field in SO. Is there any limitation of row quantity for that ? because the list will grow until thousand..
    Regards
    Wibisana

    Dear Ho we,
    There is no limitation of user define filed for document level and document row level.
    At present i think no budy use 1000 UDF at row level so its very difficult to say after creation of 1000 UDF what is impact on system performance.
    You have to work try basis.
    REGARDS
    MANGESH PAGDHARE.

  • Adding a "custom" color to a user defined tag ?

    How can I add my own user defined "color" to a new tag I create in the Finder ?
    Thx

    Hi a_mumford,
    Using tags is a great way to stay organized. I use this feature quite a bit. I've linked to an article which explains how to use and edit them:
    OS X Yosemite: Use tags to organize files
    Edit tags
    In the Finder, choose Finder > Preferences, click Tags, then do any of the following: 
    See a tag in the Finder sidebar: Select the blue checkbox to the right of the tag. 
    Change a tag color: Click the color next to the tag , then choose a new color. 
    Change a tag name: Click the tag, click the tag’s name, then enter a new name.
    Create a new tag: Click Add . 
    Delete a tag: Select the tag, then click Remove . 
    Add a tag to the shortcut menu: Select the tag in the list, then drag it over the tag you want to replace in the favorites section at the bottom of the window. There can be up to seven tags in the shortcut menu that appears when you Control-click a file. 
    Remove a tag from the shortcut menu: Drag the tag out of the Favorite Tags section until you see a puff of smoke.
    Thank you for contributing to Apple Support Communities.
    Take care,
    Bobby_D

  • User-defined function(java)

    hi expects,
    how to write user defined finction in javain meesage mapping.please help me.

    Hi Rohit,
    In order to create UDFs, you need to have a basic idea about using Core Java. Also, based on the kind of functonality of the code, you will need to know if you require any extra jar files.
    To create a UDF, all you need to do is click on LHS icon in the graphical mapping editor. Also, keep in min that the input and otput of a udf is always in strings.
    To test your functions, you can either use the test tab present in the mapping editor or you can even use the following editor(blog by Sravya):-
    /people/sravya.talanki2/blog/2006/07/24/integrating-java-editor-in-xi-integration-stack
    I think info will be enough for you to start off with creating and using UDFs:)
    This link for User Defined Functions,
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm
    Writing use defrined functions in XI is quite simple. Create a simple UDF, give the import parameters and then just go ahead with the logic coding and then return the output from the UDF.
    Just remember that all inputs and outputs to an UDF are always Strings.
    Cheers...
    Vasu
    <b>** REward Points if found useful **</b>

  • Executing user text as java code

    what is the best way to execute user-entered text (such as text from a JTextArea) as java code in a java application?

    http://www.beanshell.org

  • How to read data from a website based on user inputs through java programmi

    Hi
    I want to get information from a website based on some inputs that I have. The inputs change everytime and based on them, different output is expected. How do I go about with it? Please advice...
    Will data mining help in this? or is it used only for analysis and predictions?

    you can get the webpage you need very simply like this :
    Test.java
    public class Test{
              public static void main(String[] args) {
                   URLClient client = new URLClient();
                            // URL of a webpage
                   String webPage = client.getDocumentAt("http://content-ind.cricinfo.com/slvind/engine/current/match/343730.html?template=desktop;view=main;wrappertype=desktop");
                   System.out.println(webPage);
         }URLClient.java
         import java.net.*;
         import java.io.*;
         public class URLClient {
              protected URLConnection Connection;               
                   public String getDocumentAt(String urlString) {
                             StringBuffer document = new StringBuffer();
                             try {
                                            URL url = new URL(urlString);
                                            URLConnection conn = url.openConnection();
                                            BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                                            String line = null;
                                            while ((line = reader.readLine()) != null)
                                                 document.append(line + "\n");
                                            reader.close();
                                       } catch (MalformedURLException e) {
                                       System.out.println("Unable to connect to URL: " + urlString);
                                       } catch (IOException e) {
                                       System.out.println("IOException when connecting to URL: " + urlString);
                                  return document.toString();
              }

  • How to download (export) user master data from java code

    Hi,
          I've an requirment. I need to export the user master through java code from a dual stack system
    The requirment is like an autmated of what we do in indentity management export.
    Thanks in advance
    Regards,
    mcsekar_21

    Solved it..
    Wrote a bean using UME factory, to download, upload and modify.

  • Limitations of User Defined attributes in USR.

    11.1.1.3
    I added a notes field to the user defined fields of a user, customer wanted a textarea to makes notes in reagarding the user in question.
    Can someone tell me where the limitations of these fields are listed?
    I added a large textfield and the system happily accepted the size and made a clob in the db.
    I have added the permissions in the policy to make it visible in create as well as in view and modify, all that works fine.
    However, when I modify the field by simply writing a small note in it....
    I save the change, no exceptions, no error whatsoever
    the correct data gets into the clob field in the USR table
    but the text area in the user view show the entity object name and reference/instance instead...
    i.e.
    i add the text "test" into the text area, press save
    the fields then shows me...
    weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB@65e1
    So, I am looking for where this limitation is mentioned in the manuals or trying to find out if its a bug.
    Reason I am wondering is because there is a field (USR.USR_NOTE) in the DB which is a CLOB but I cant
    find any reference to that in the User Configuration, i.e. what does the system use it for?
    So, if there is a limitation on the size of fields in the User Configuration, where can I see them?
    I looked in the System and developer manuals and I see nothing on that there.
    What is the maximum and where can I see that defined?

    Hello Antilles.
    The user defined attributes that you refer to it´s used to specify additional attributes.
    You can find more useful information about this topic in this link: http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/nav.htm
    Regards Pedro

  • Problen in ChooseFromList & User Defined Object

    Hello.
    I'm trying to use a [ChooseFromList] that calls info from one User Table called @LABS this table is MasterData type.
    I add a User Defined Object in runtime, called UO_Labs
    Then, I add one ChooseFromList to my form (This form was made in ScreenPainter)
    The user object was created fine, the ChooseFromList is added fine, the form loads fine, but, when I press tab or the button of the ChooseFromList I get this error: "Internal error (-1003) ocurred [Message 131-183]"
    I try to use my ChooseFromList in one Matrix and in one EditText objects. And gives me the same error in both objects.
    I'm using SAP 2007 PL 35
    This is my code:
    Adding the User Defined Object -
    Dim UO As SAPbobsCOM.UserObjectsMD
    UO = CompanyObj.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
    UO.ManageSeries = SAPbobsCOM.BoYesNoEnum.tNO
    UO.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES
    UO.CanClose = SAPbobsCOM.BoYesNoEnum.tYES
    UO.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
    UO.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
    UO.CanLog = SAPbobsCOM.BoYesNoEnum.tNO
    UO.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tNO
    UO.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES
    UO.Code = "UO_Labs"
    UO.Name = "Laboratory Info."
    UO.ObjectType = SAPbobsCOM.BoUDOObjType.boud_MasterData
    UO.TableName = "LABS"
    If UO.FormColumns.Count = 0 Then UO.FormColumns.Add()
    UO.FormColumns.SonNumber = 0
    UO.FormColumns.FormColumnAlias = "Code"
    UO.FormColumns.FormColumnDescription = "Code"
    UO.FormColumns.Add()
    UO.FormColumns.SonNumber = 0
    UO.FormColumns.FormColumnAlias = "Name"
    UO.FormColumns.FormColumnDescription = "Name"
    If UO.Add() <> 0 Then
          Application.MessageBox(CompanyObj.GetLastErrorDescription)
    End If
    END Adding the User Defined Object -
    This code adds my UDO and it works fine, has data and do the work.
    Adding the [ChooseFromList] Object -
    '// form object is send in parameters.
    Dim oCFLs As SAPbouiCOM.ChooseFromListCollection = f.ChooseFromLists
    Dim oCFL As SAPbouiCOM.ChooseFromList
    Dim oCFL_CP As SAPbouiCOM.ChooseFromListCreationParams
    Dim matrix As SAPbouiCOM.Matrix = form.Items.Item("matrix").Specific
    oCFL_CP = App.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
    oCFL_CP.MultiSelection = False
    oCFL_CP.ObjectType = "UO_Labs"
    oCFL_CP.UniqueID = "cfl_Labs"
    oCFL = oCFLs.Add(oCFL_CP)
    matrix.Columns.Item("labCode").ChooseFromListUID = "cfl_Labs"
    matris.Columns.Item("labCode").ChooseFromListAlias = "Code"
    form.Refresh()
    END Adding the [ChooseFromList] Object -
    Thanks for your time...
    Greetings
    Gabriel Vasquez.

    Hi Gabriel,
    Please check in B1 if the UDO is created correctly, specifically the CanFind option. I got that error once, with one of my addons, that somehow was created with CanFind=tNo, despite my code indication CanFind=tYes...
    Also, try adding the CFL directly in the XML form.
       <column uid="C_labCod" type="116" title="Lab. Code" description="Laboratory Code" visible="1" AffectsFormMode="1" width="70" disp_desc="1" editable="1" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1" ChooseFromListUID="cfl_Labs" ChooseFromListAlias="Code">
          <databind databound="1" table="@LABS" alias="U_labCode"></databind>
          <ExtendedObject linkedObject="" LinkedObjectType=""></ExtendedObject>
       </column>
       <ChooseFromListCollection>
          <action type="add">
             <ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"></ChooseFromList>
             <ChooseFromList UniqueID="cfl_Labs" ObjectType="UO_Labs" MultiSelection="0" IsSystem="0"></ChooseFromList>
          </action>
       </ChooseFromListCollection>
    Also, it's a good practice to your SAP partner's NameSpace as prefix to UDOs, UDTs, UDFs and UDKeys, in order to avoid conflicts with other partner's add-ons.
    Regards,
    Vítor Vieira

  • LMS 4.2 User Defined Groups Empty after Daemon restart

    Hello
    I need some help here.
    In order to get topology services to run on a non resolvable DNS server I have followed the instructions in the online help and got Topology Services to start. My issue now is that all my userdefined groups are empty and I can not edit them - it gives me a error message.
    Checked the parent groups and these are as supposed - the system groups - subnet groups fx are also populated.
    What do you advise?
    I have read oither posts and some people were advised to restart crmdmgtd as in this thread:
    net stop crmdmgtd
    net start crmdmgtd
    http://https://supportforums.cisco.com/message/3414498#3414498
    Should I just follow the same steps? I can not see find this process in 4.2
    Thanks Isaac
    PS: These were the steps followed in order to make Topology Services to work.
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------                  The Cisco Prime LMS client must be able to resolve the hostname of the Cisco Prime LMS server to  server's IP  Address, through DNS.
    If the Cisco Prime LMS server is not DNS resolvable, Cisco Prime LMS client can access it with the IP  address itself, by performing the following steps:
    Open the orb.properties file. Solaris or Soft Appliance: NMSROOT/lib/classpath Windows: NMSROOT\lib\classpath where NMSROOT is the directory where you have installed Cisco Prime LMS. Set the property as follows: jacorb.dns.enable=off Go to Admin > Trust Management > Local Server > Certificate Setup.
    The Certificate Setup page appears. Enter the IP Address of the Cisco Prime LMS Server in the Hostname textbox. Populate the other columns as explained in the Online help for Administration of Cisco Prime LAN  Management Solution 4.2. Click Apply to generate the self-signed certificate. Restart the daemons. See the Online help for Administration of Cisco Prime LAN Management Solution 4.2 for instructions. You will be able to launch Topology Services with the IP address itself. 

    Hi Michel and thanks for the reply.
    The "Physical Location" groups magically started working.  I had tried to apply a bunch of device update packages a couple of days ago.  I thought they all failed but maybe some of them actually applied.  I have no idea but the 2 groups with a rule like this one are now populating:
    Device.Hostname startswith "XYZ"
    However, the groups with the rule below are still failing to populate in the device selector even though if I edit the group the "Objects matching criteria" list contains the correct members:
    Device.Admin_responsibility equals "XYZ"
    Admin_responsibility is user defined field 1 (Admin => Device Credential Settings => User Defined Fields).
    If you mean "dynamic" in that they are supposed to automatically update then yes these are dynamic public groups.  I had them defined this way for years in LMS 2.6, though the "dynamic" part never worked.  I always had to go into group admin and manually refresh to get the groups to update.  I have tried that several times in 4.1 with no luck.
    -Jeff

  • About Setting - User Defined Fields

    Hi everyone:
    Well let me introduce a little of what i've been doing, at first i had this addon running just to satisfy some clients requirements, but now the requirements are different from one to another so i need to build an standard of it, for that do you know where or which is the table that saves the information contained on the form Settings- User Defined Fields? (for an specific form) where i found how the categories (CUDC) are settled to the _User fields of every form etc.
    hope anyone knows about this.
    thanks a lot
    Gabriela

    Hi
    Look at table CUFD and UFD1 for the info you are looking for.
    Hope this helps

  • Formatted search in the User defined table

    Hi All..
    I created two user defined table one is for document row and other is for document master.So in the master table created one column named as Sales order no and through formatted search call the sales order no in that column.Now i want that in my child table i want to show the those items which belongs to the selected sales order no in the master table.So how can i do that through Formatted search.Is there any query of it then please forward it..
    Thanks

    Ya Sure..
    I need some quality check on the items after delivery so i am trying to manage it through the user defined tables.I created two tables first is document type ,Second is Document type rows.Now i created 5 user defined field in both the table.Now i want to call my sales order and its items in the UDT.so i created one fms and call the sales order in the Document table now when i double click on the first row after that i am able to see the new table which is the document row table .Now i need the item code and description of the selected sales order in the document rows table.So how the items and description can come in the row type table through FMS..
    I hope now u r able to get my scenario..

Maybe you are looking for

  • My IPOD Classic 160GB is now not recognized by iTunes and will not sync

    I have a 160GB IPOD Classic that now will not sync with iTunes. Both the iPod and iTunes have up to date software versions and I am connecting thru a MAcBook Pro running OS X 10.10.2. I have synced this iPod i the past with no problems and now it doe

  • T400 RAM Upgrade Question

    Will this ram work with T400? I know it says mac memory but I just want to know. http://www.amazon.com/Corsair-Channel-204-Pin-SO-DIMM-CMSA8GX3M2A1066C7/dp/B00505EZYW/ref=sr_1_13?ie... Solved! Go to Solution.

  • Credit Note for Item Category ERLA

    Hi, We have a scenario wherein a Customer is to be issued a Credit Note for Price Difference. The material has Item Category ERLA. Excise Duties & VAT is also there. Kindly suggest a solution on this. Thanks & Regards, Khushal Agrawal

  • Could not send out email...found out the real reason

    I use windows live mail.When I was away from home I could not send out any emails. When I called tech support, I was told because I was not at home using my DSL router. I mentioned that I could receive emails from Verizon no problem but could not sen

  • Project Cycle aba is missing..

    Dear Gurus.. In t_code solar_project_admin I go to the 'System Landscape' tab, and then the 'Project Cycle' tab is missing ... exist only : Systems , Central Objects and IMG Projects tab.,.. My solman is in ST 12 level.. Thank you for clarifications.