Saving Records with RMS

Hi,
I'm totally new to RMS, so I want to post a question, which is maybe easy for u but very diffucult for me.
So I want to set up a recordstore (i.e. Data).
Data has 3 attributes: NAME, DESC, ADRESS.
Is it possible to save this information in one record?
I thought about adding a class with these attributes, but I didn't know how to add an object of this class in a record.
I'm very thankful for any help ideas etc. I can get.
Silas_3
P.S. Sorry for my english!

This is an example of use RMS.
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.rms.*;
import java.io.*;
public class RMSDemo extends MIDlet implements CommandListener {
    private Display display;
    private RecordStore rs=null;
    private Command exit;
    private RecordEnumeration re;
    private int recordNO;
    Form frm;
    int index=0;
    public RMSDemo() {
        display = Display.getDisplay(this);
        //Create a RMS
        try {
            rs= RecordStore.openRecordStore("myRecord",false);
            rs.closeRecordStore();
        } catch(Exception e) {
            System.out.println(e);
    public void startApp()   {
        frm=new Form("RMSDemo");
        exit= new Command("Exit",Command.EXIT,1);
        frm.addCommand(exit);
        add= new Command("Add",Command.SCREN,1);
        frm.addCommand(add);
        delete= new Command("Delete",Command.SCREEN,2);
        frm.addCommand(delete);
        show= new Command("SHOW",Command.SCREEN ,3);
        frm.addCommand(show);
        frm.setCommandListener(this);
        frm.append("#####");
        display.setCurrent(frm);
    public void pauseApp() {
    public void destroyApp(boolean un) {
    // Handling commands
    public void commandAction(Command cmd,Displayable d) {
        if(cmd==add) {
            addRecord();
        } else
            if(cmd==delete) {
            removeRecord();
            } else
                if(cmd==show) {
            try {
                byte b[]= rs.getRecord(recordNO);
                String s= new String(b);
                frm.append(s);
            } catch(Exception e) {}
    void addRecord() {
        try {
            rs= RecordStore.openRecordStore("myRecord",false);
            index++;
            byte b[]=("Record NO "+index).getBytes();
            //Adding record to record store
            rs.addRecord(b,0,b.length);
            rs.closeRecordStore() ;
        } catch(Exception e) {
            System.out.println(e);
    // Deleting a record
    void removeRecord(int recordID) {
        try {
            rs= RecordStore.openRecordStore("myRecord",false);
            rs.deleteRecord(recordID);
            index--;
            rs.closeRecordStore();
        } catch(Exception e) {
            System.out.println(e);
}

Similar Messages

  • When we click on the copy botton record with same name should not be saved

    Hi,
    Copy button will copy the record with the same name and will save it.our requirement is when we click on the copy botton ,record with same name should not be saved
    we are performing this task in custom object 12 and exposed Opportunity Name in the layout.
    Records with same Opportunity Name should not save ..when we copy the record
    Can we perform any field validation on Opportunity Name field?
    Please help
    please email me @ [email protected]
    Thanks
    Srinivas Merugu

    Opportunities that are assoicated to the same account cannot have the same name. You cannot make this unique for your whole instance. The only way that you could do this would be to create a webservice application that checks this before you save the record.
    What about defaulting the name each time this could make the record unique?

  • Error while saving record in SharePoint 2013 through jQuery

    Dear Support,
    I had successfully created provider hosted app and deployed on SharePoint 2013 online site, in my project I created
    orderservice.asmx.cs web service and write a code for save record on SharePoint 2013 online list as I mentioned below and calling on App1.js file.
    But I am facing error when I am saving record on SharePoint 2013 list on button click event
    “500 Internal Server Error
    <! DOCTYPE html>”
    <html>
    OrderService.asmx.cs
    Public
    int InsertOrder (Order
    orderRecord)
    pwd.MakeReadOnly();
    clientContext.Credentials = new
    SharePointOnlineCredentials (myUserName, pwd);
    try
    Web oWeb = clientContext.Web;
    ListCollection lists = oWeb.Lists;
    List oOrderlist = lists.GetByTitle("Order");
    clientContext.Load<ListCollection>(lists);
    clientContext.Load<List>(oOrderlist);
    ListItemCreationInformation listItemCreationInfo
    = new
    ListItemCreationInformation();
    var listItem = oOrderlist.AddItem(listItemCreationInfo);
         listItem["Title"]
    = orderRecord.OrderProfile;
    listItem["Special_x0020_Instruction"]
    = orderRecord.Instruction;
    listItem ["Customer"] = orderRecord.CustomerId;
    listItem.Update();
           clientContext.ExecuteQuery();
    return 1;
    catch
    return -1;
    App1.JS
    $("#Save").click(function
    debugger;
    var OrderProfile = $('#orderprofile').val();
    var CustomerId = $('#exCustomerlist').jqxComboBox('getSelectedItem');
    var Instruction = $('#instruction').val();
    $.ajax ({
    url: location.pathname + "OrderService.asmx/InsertOrder",
    type: "POST",
    dataType: "json",
    data: "{OrderProfile:'" + OrderProfile
    + "', CustomerId:'" + CustomerId.value
    + "', Instruction:'" + Instruction
    + "}",
    contentType: "application/json; charset=utf-8",
    beforeSend: function (XMLHttpRequest) {
    //Specifying this header ensures that the results will be returned as JSON.
    XMLHttpRequest.setRequestHeader("Accept",
    "application/json");
    success: function (response) {
    $(".errMsg ul").remove();
    var myObject = eval('('
    + response.d + ')');
    if (myObject > 0) {
                                         alert(myObject);
    $(".errMsg").append("<ul><li>Data
    saved successfully</li></ul>");
    else {
    $(".errMsg").append("<ul><li>Opppps
    something went wrong.</li></ul>");
    $(".errMsg").show("slow");
    clear();
    error: function (response) {
    alert(response.status + ' ' + response.statusText
    + ' ' + response.responseText);
    would request for your support.
    Regards,
    Akhilesh

    Hi,
    Can you call your web service using jQuery not in an app successfully?
    As the error message suggests, it might be an error on the server side.
    I suggest you do a simple test to check whether you can call the web service using jQuery.
    Here are two links would provide more information about troubleshooting this error for your reference:
    http://sadomovalex.blogspot.com/2013/08/return-json-from-asmx-when-call-it.html
    http://www.codeproject.com/Tips/761116/Troubleshooting-an-Issue-With-Calling-an-asmx-Web
    Feel free to reply with the test result if the issue still exists.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Error while saving record "User:johndoe":     Error -14071

    I have added my augmented users from the AD server. When I select user and to apply a setting under Preferences I get this on attempting an "Apply", Error while saving record "User:johndoe":Error -14071. I'm authenticating to my LDAP not AD/All Domains.
    I have the server bound correctly to the AD server. Bound to AD, then promoted to OD master.
    Tried WGM from another Mac, same error.
    I recall my AD admin extending the ad schema last year for OS X 10.4.
    Thoughts? Thanks.

    Thanks David and Mabel, and all for the suggestions. I did go through "Leveraging Active..." prior to posting. I did try your method of canceling the authorization to WGM and viewing Directories. I would select a user from this method and try to apply something from MCX, but still got the -14070 error. Yes, I do have my client bound 1st OD, 2nd AD, with OD first on the search policy for the client.
    I though I had solved my issue by authenticating to WGM and LDAP. Then selecting Groups and the Members tab, I define an OD group and select that group. I can then click the "+" towards the right of the window. Then select my AD there which populates. I can add my AD groups or single users to my OD group. Then I'm able to apply MCX settings. But, no "blue" circle next to the group's silhouette. How is my method possibly incorrect?
    Also, at some point I unbound my client from AD and it seems the client is ok with getting AD info off my OD server. Example, my AD sharepoint mounts for PHD.
    But, I do have a pause of 20 secs. are more when logging into the client as well as accessing applications. Side effect of my method?

  • Error while saving record "john doe":     Error: -14140

    when changing a users preferences i try and save but it comes up with this error
    Error while saving record "john doe": Error: -14140
    and wont allow me to save
    any ideas?
    Many Thanks

    This thread might help you:
    http://www.afp548.com/forum/viewtopic.php?showtopic=16200
    This document is supposed to be very good as well:
    http://www.afp548.com/filemgmt_data/files/AD-OD-2.1.pdf

  • Saving form with content (end user)

    I have created a form using AdobeLiveCycle Designer.
    Everything seams to work when I tested it... However, When I send it for someone to fill out, she wanted to save a copy for her records with the data included. I was able to do a simple "save as" to achieve this. but she was not and received a message, stating "Data typed into this form will not be saved. Acrobat reader can only save a blank version of the form." then goes on to say "please print you completed form if you would like a copy for you records" "print form" button appears.
    My question: Is there a way to format or save out the form so that someone with only reader can save a completed version of the form. How do I do this?
    Thanks!

    The form has to have special Extended Reader Rights enabled. There are many posts and pinned FAQs about this.

  • "ERROR SAVING RECORD" Message generated...

    Hi Everyone,
    I have a minor error with an Alert I made. I have an alert
    linked to both the Pre-Insert and Pre-Update Triggers at the
    Block level of my form.
    This alert fires when the Volume entered in the record is >50.
    It asks "Are you are sure the Volume should be larger than 50?"
    and has a Yes and No button on it. When you hit Yes, it saves
    and that is correct. When you press No it doesn't save, and
    that is fine, BUT after you press No, a window with a red X
    comes up and says in all capitals "ERROR SAVING RECORD". How
    can I get rid of this?
    Someone please help me out, I am stumped!
    Thanks in advance.
    Mike

    Didn't you forget to write in your triggers:
    IF alert_button=ALERT_BUTTON2 THEN
    RAISE Form_Trigger_Failure;
    END IF;

  • Trouble with saving data with 1 to 0..1 relation

    I have following simple data model: a parent entity which has 2 relations to 2 child entities called ChildA en ChildB. The type of relation is 1 to 0..1.
    I have a (saved) record which has only a childA relation and execute following code (with button when record is shown):
    screen.Parent.ChildA.deleteEntity();
    screen.Parent.setChildB(new myapp.ChildB);
    screen.Parent.ChildB.BProp1 = "test";
    screen.Parent.ChildB.BProp2 = "test";
    screen.Parent.ChildB.BProp3 = "test";
    screen.Parent.ChildB.deleteEntity();
    screen.Parent.setChildA(new myapp.ChildA);
    screen.Parent.ChildA.AProp1 = "final";
    screen.Parent.ChildA.AProp2 = "final";
    When I hit save afterwards, I get:
    What am I doing wrong?
    This is what's going over the wire:
    --batch_1c90-fa5c-f201
    Content-Type: multipart/mixed; boundary=changeset_0c72-4e38-ea49
    --changeset_0c72-4e38-ea49
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    POST ChildAs HTTP/1.1
    Content-ID: 1
    DataServiceVersion: 3.0
    Accept: application/atomsvc+xml;q=0.8, application/json;odata=fullmetadata;q=0.7, application/json;q=0.5, */*;q=0.1
    Content-Type: application/json;odata=verbose
    MaxDataServiceVersion: 3.0
    {"AProp1":"final","AProp2":"final"}
    --changeset_0c72-4e38-ea49
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    MERGE Parents(13) HTTP/1.1
    Content-ID: 0
    DataServiceVersion: 3.0
    If-Match: W/"X'000000000000273C'"
    Prefer: return-content
    Accept: application/atomsvc+xml;q=0.8, application/json;odata=fullmetadata;q=0.7, application/json;q=0.5, */*;q=0.1
    Content-Type: application/json;odata=verbose
    MaxDataServiceVersion: 3.0
    {"ChildA":{"__metadata":{"uri":"$1"}}}
    --changeset_0c72-4e38-ea49
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    DELETE ChildAs(13) HTTP/1.1
    Content-ID: 2
    DataServiceVersion: 3.0
    If-Match: W/"X'000000000000273D'"
    Accept: application/atomsvc+xml;q=0.8, application/json;odata=fullmetadata;q=0.7, application/json;q=0.5, */*;q=0.1
    MaxDataServiceVersion: 3.0
    --changeset_0c72-4e38-ea49
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    DELETE Parents(13)/$links/ChildB HTTP/1.1
    Accept: application/atomsvc+xml;q=0.8, application/json;odata=fullmetadata;q=0.7, application/json;q=0.5, */*;q=0.1
    MaxDataServiceVersion: 3.0
    --changeset_0c72-4e38-ea49--
    --batch_1c90-fa5c-f201--
    paul van bladel ==independent enterprise application architect== http://blog.pragmaswitch.com

    Hi Paul,
    It is unusual for you to be posting a question you normally answer them :)
    I decided to run some tests based on your example out of curiosity.
    I got to test 'C' here is a workaround but crucially also not a single transaction.
    myapp.AddEditParent1.TestEditC_execute = function (screen) {
    var parent = screen.Parent,
    child = parent.ChildA;
    child.deleteEntity();
    screen.details.dataWorkspace.ApplicationData.saveChanges()
    .then(function (res) {
    var childA = new myapp.ChildA();
    childA.AProp1 = "final-C";
    childA.AProp2 = "final-C";
    childA.AProp3 = "final-C";
    parent.setChildA(childA);
    That got me thinking that actually the result of you code is an update in the end really ;)
    myapp.AddEditParent1.TestEditD_execute = function (screen) {
    screen.Parent.ChildA.AProp1 = "final-D";
    screen.Parent.ChildA.AProp2 = "final-D";
    screen.Parent.ChildA.AProp3 = "final-D";
    So that was test D which obviously worked!
    I think it is a bug.
    Cheers
    Dave
    Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

  • Anyone know how to get to the setting so i can record with the keypad instead of the mouse?thanks

    Anyone know how to record with the computers keyboard on logic rather than the mouse on piano roll?

    this is a follow up from the profane post earlier....
    i have done this twice in two other posts..
    here is my problem.. i started off trying to update itunes, it failed twice and said i needed to install manually via tools.
    the only place to get to tools is the pop up box that appears when you click check for updates.. if there is an available update then the pop up shows up with the quick time and itunes files to download. so i finally figured that out. i clicked on tools and manual update, four files were saved to a file. Apple mobile device support, another one similar, itunes, and another one i cant remember. I only downloaded the itunes file seeing as though thats all i needed to accomplish in the first place.
    so then i restarted my computer bc you need to reboot and then reopen itunes for update to take effect. once i have itunes back open i plugged in my new 5s which i am trying to sync to my computer to get all my stuff back bc i lost my previous phone over the weekend.. once i plugged the phone in an error stating i needed to unistall the apple mobile device support and itunes and then reinstall. well i dont know where those files were originally stored on my computer AND since my itunes was updated, just not the other 3 associated files, when i click check for updates it says its up to date and then pop up containing the quick time and itunes does not pop up thus i cant get back to the tools tab to manually save the 4 files again.
    so i was just going to uninstall itunes all together and then i thought well what happens if it erases all my photos apps songs etc... which would defeat the whole purpose in the first place of me trying to sync my new phone to get all my stuff back.
    so i literally have no idea what to do at this point.. if you have read this you are probably just as confused as me...

  • BAPI SRM_RECORD_FIND is for search records in rms?

    Hi everyone
    I want to search records in rms public sector by atributes.
    Is there any bapi for this purpose?
    bapi SRM_RECORD_FIND doesn't returns any table with any results.
    what bapi can I use ?
    thank's in advance

    Hi Seeta Ram,
    Did you pass the table PO_ITEM_SCHEDULES to BAPI_PO_CREATE with the coresponding Item numbers for each item in the table PO_ITEMS?
    Regards,
    Vitz.

  • Select the last saved records in a table

    I all
    I have this struct in a table
    create table INT_OBJ
    IDOBJ NUMBER(15) not null,
    IDERP NUMBER(15),
    IDE NUMBER(15),
    CPO VARCHAR2(20),
    VLR VARCHAR2(2500),
    VLRC VARCHAR2(2500)
    How to Select the last saved records in a table. I think usea a temp table for put the last row read and begin to read in the next row.
    The table is reading each four hours.

    Theoretically it can be done with ORA_ROWSCN and enabled ROWDEPENDENCIES, but there are so many nuances, so only adding column for ordering is right.
    Regards,
    Sayan Malakshinov

  • Recording with in-ear headphones

    Does anyone know how to or have a manual on how to record with the apple in-ear headphones?

    Hi there, do you have the in-ear headphones with the control module (volume +/-, play/pause/next song, and microphone)?
    You also need the newest iPod nano.
    I have the regular headphones with the control module and as soon as I plug them to the iPod nano the option Voice Memos shows up. If you click on Voice Memos, there are two options that show up on the list Start Recording and Recordings. If you click on Start Recording, it will obviously begin recording. The option Recordings gives you the saved recordings you've made.
    Do you have any more questions? let me know. By the way, I think your post was mis-categorized. the iPod Hi-Fi does not have recording capabilities, as far as I know.

  • Record with highest sy-tabix

    Hi,
    In an internal table I have 10 records for a field like
    A
    A
    B
    C
    D
    E
    E
    D
    E
    D
    Is it possible to get the records D and E which has highest sy-index.
    good solution will be rewarded.
    Thanks and Regards,
    Neerup.

    Neerup,
    Neerup wrote:
    Is it possible to get the records D and E which has highest sy-index.
    but in your question you mention as :
    Record with highest sy-tabix
    any ways:
    just sort decending then fetch the first record then exit from loop.

  • Importing to iMovie: How do I use an external usb mic when recording with the built-in FaceTime HD Camera?

    Hello all
    I'm scheduled to work with a friend this week; I'm going to help him make a simple audition DVD.  I promised him I had the necessary equipment and such.
    I was importing from the webcam using iMovie.  If I can't use my external mic to record for the video, there is more involved in the editing process.   I was hoping to record the video and audio into one package.  I'm using the built-in FaceTime webcam on my macbook pro and a ZoomH1 on usb.
    I've tried changing the audio in system preferences: input to H1.  This works when recording with audacity or anything else.  I even changed the input on FaceTime to H1.  There aren't any preferences I can find in iMovie to change the input for importing video directly from the webcam.
    How do I change the audio input for direct import on iMovie?   
    OR
    Is there something else I can do to have HD video and HQ audio captured in one video file on my macbook pro?
    I suppose I can record the video and audio separately but that is usually much more involved.  This is why I got this usb microphone lol.
    Thanks in advance,
    -Seth

    I just found using QuickTime Player to record a movie works great.  I can easily change the audio input.  iMovie is silly. lol
    If I missed anything let me know.
    Thanks
    -Seth

  • Recording fios tv to DVD recorder with tivo/fios cablecard

    ok this post is for my dad....and if ur thinking why the hack does he want a dvd recorder when they already have a tivo...don't ask my dad is kinda weird he still "tapes" shows on VHS tapes using vcr, and tapes radio shows on cassettes....then again he also still pyas his bills with a pen, a check and the us postal service.....
    anyway, I didn't know much about the world of dvd recorders before a couple days ago, so I have a few questions before and if I actually decide to get him one.
    Question 1: we currently have an HD TV with an HD tivo connected and a multistream verizon fios cablecard. My question is regarding copyright limitations....what prevents you from just recording any tv program onto dvd, as you still can onto a VHS? and what percentage of the channels/shows have this protection? like would he only be able to record from the original 12 or so broadcast channels? this is my main concern....he watched a lot of the sports channels like espn espn2 golf channel nbatv etc....
    Question 2: also, when doing my research I thought of another benefit a dvd recorder may have. I have been putting all the family home videos which are on vhs onto dvd, but it's a bit of a process. I use an external usb capture device made by Hauppage hooked up to the VCR then the computer captures it realtime and generates an mpeg video file on my hard drive, THEN I have to spend the 1 or 2 hours it takes to convert to DVD format and burn with Nero so it can be played on a regular DVD player......so....question being....
    can a standalone DVD recorder hook up to a VCR to transfer video direct to a DVD, or do you have to buy a DVD recorder with a built in VHS deck?
     Question 3: oh and someone once told me that you can only play the recorded DVD's on the recorder, and not other regular DVD players...I couldn't believe this was actually true...but was he right?
    TIA!

    Answers:
    Question 1: if the DVD recorder is connected to the TIVO there shouldn't be anything prohibiting him from recording. The signal sent out from the TIVO is an unencrypted feed that can be processed by anything (TV, VCR, DVD recorder, ETC). As long as theres no restrictions within the DVD recorder itself, you should be fine to record anything. This also means you have to record realtime (press play on TIVO and record on the DVD recorder and wait the amount of time for the event to end before pressing stop)
    Question 2: You would need to talk to the tech support for your DVD recorder. Its going to depend on what types of video streams and formats it will accept as a source
    Question 3nce again this is a question for the DVD recorder tech support, not Verizon. It depends on the file format that the recorder saevs the file as. Not only that, but different players also can read different formats. So you have to take a look at the recorder and the dvd play back device
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

Maybe you are looking for