Read the good information from a record

Hello all,
I save in a record (RMS) following infomation:
id - int
webid - int
del - int
name - string
if I want read the name directly do I need to read all previous information (id, webid, del)? Do you know a way to read directly the name without reading the other information?
Now my code is like :
try {
               RecordStore rs = RecordStore.openRecordStore(Produit.DB_PROD,true);
               RecordEnumeration re = rs.enumerateRecords(new ObjShopperFilter(), new ObjShopperComparator(), true);
             while (re.hasNextElement()){
                  ByteArrayInputStream stream = new ByteArrayInputStream(re.nextRecord());
                  DataInputStream reader = new DataInputStream(stream);
                  try {
                       reader.readInt();
                      reader.readInt();
                      reader.readInt();
                      String name = reader.readUTF();
                     reader.readLong();
                      if (reader.readInt()==id){
                           reader.reset();
                           stream.reset();
                           rs.closeRecordStore();
                           return name;
                  catch (IOException e) {
                       //debug
                      System.out.println("IOException in Category.isUsed:002:" + e + ":" + e.getMessage());
                  finally{
          catch (RecordStoreException rse){
              System.out.println("RecordStoreException in Category.isUsed:001:" + rse + ":" + rse.getMessage());
          Could you help me ?
Regards

I think that my explanation wasn't good :(
I don't want to find a special record...I want read a special part of a record.
When I save a record I write in bytes values in int, string, double...(ex.: 1,"john",2.3).
So my RMS contains some same records, for example
1,"john",2.3
2,"rose",3.4
3,"Louis",3.0
When I read all my records, I would like retrieve directly the String "john","rose"...
My solution is to read each component of a record without save the read value (see my previous code...) until read the element that I want keep the value.
Is it possible to read directly a part of a record?
I hope that these explanation could help you to understand my needs.
Regards

Similar Messages

  • Reading the TimeZone information from the Request

    Hello,
    I am developing a web-app that is supposed to support Internationalization and Localization.
    To the best of my knowledge, only Locale information can be read from the request headers. Can anybody tell me how can I get the users TimeZone by reading the Http Request? That is the timezone of the request sent by the client browser.
    Thanks in advance.

    Thanks,
    Yes I can use the java.util.SimpleTimeZone to set and manipulate the timezone
    information, but my problem is:
    I need a technique that allows me to get the time zone of the machine(browser)
    from which the request to my application is sent from.
    The same way you do this with an HttpServletRequest object:
    request.getLocale(); What do you do if you need the the timezone too?
    Message was edited by:
    Mauvv

  • How read read the recepient information from a output type ?

    Hi all,
    There is one output type which has been configured for the APPLICATION V2 which will be triggerred for sending emails .  In the communication we maintain the recepient address whether a distribution list or an external email id.
    Can anybody tell me any FM (Function Module) or BADI thought which i can get all the recepients
    address depending upon the output application type and sending type as 7 ie SAPOFFICE .
    Thanks and Regards,
    Syed

    I am looking for the same information...Help!

  • Reading the TimeZone information from a Request in an ADF based WebApp

    Hi,
    I am new to Oracle ADF and I have to develop a web-app for administering a Single-Sign-On application by using ADF and JSFs technologies.
    How can I get the timezone from the request sent by the client browser?
    Help is highly appreciated.
    Message was edited by:
    user562826

    Thanks John,
    I appreciate your time.
    Looks like you got answers to all my questions. For the Timezone issue, I realized (back then), that there is no way you can get that in the HTTP protocol, there are some other tips out there like forcing the client browser to provide that information by running a javaScript function.
    Thanks for the password text field issue, I will take another direction from there.

  • Scanner(Warning) : 027: Unable to read the sequence number from the Workstation object.

    Hi
    We are having trouble storing inventory scans from some workstations.
    We have a windows ONLY environment, with middle tier servers. (ZEN65SP1,
    W2KSP4).
    Some workstations are storing fine. The Storer function is working and we
    can see the storer functions for the 'good' workstations in the Inventory
    service window.
    However some workstations can't store to the inventory db, but DO populate
    eDir ZENworks inventory 'minimal information' but show "Scanner(Warning) :
    027: Unable to read the sequence number from the Workstation object." in
    the Scan Status...
    The Inventory service window shows no attempt by these workstations - it's
    almost as though the scan file is not arriving (though eDir knows/displays
    the scan file name)
    How does the workstation access the scandir in Windows only/middle tier
    environment? Does the scan xml stream get sent to the MT via http and then
    on to the scandir via CIFS?
    Any suggestions/explanations welcome!!
    Many thanks
    David

    David,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • 027: Unable to read the sequence number from the Workstation object

    Environment:
    NW 6.5 sp4
    Zen 6.5 sp1
    We had a problem with our inventory server processing .STR files a couple
    months ago - had to turn off inv. policies on workstations while we resolved
    it. Now it's resolved and we're running inventory again. We have a large
    number of workstations reporting this error:
    027: Unable to read the sequence number from the Workstation object
    They have no data in the DB, although they do have minimal scan info, and
    the last scan status date matches that of the sequence number error.
    I've seen this sporadically in the past and have been able to resolve it by
    initiating a full scan on the individual workstation. However, that does
    not seem to be making a difference this time.
    Novell's troubleshooting document basically says see if the server's
    running, and see if there's data for the workstation in the db. Then call
    tech support.
    Any other ideas?
    ~~~Nicoya...

    Jared wrote:
    > Nicoya Helm,
    >
    >> 027: Unable to read the sequence number from the Workstation object
    >
    > I am thinking that this can also mean a previous full scan was not
    > found. Or maybe the STR file name is bad.
    >
    > This information is stored here
    > HKEY_LOCAL_MACHINE\Software\Novell\Workstation
    > Manager\InvScanner\"STRFileName"
    The machines I'm troubleshooting have valid formats for their STR names,
    but that doesn't necessarily mean they are valid STR sequence numbers.
    Does removing the value in the reg key cause the STR file name to be
    recreated?
    >
    > Because imaging is used, it's possible that this information is matching
    > on some machines which could cause problems.
    I've verified that none of our images contain the c:\zenworks history
    folder, and we run a script that cleans up any zenworks items before
    sysprep (i.e. makes sure there's no registration info on the
    workstations, etc). Our imaging scripts also clear any ZIS info to
    avoid any duplication as well, so I don't think imaging would be causing
    this.
    > I believe 6x also has a hist.ini file like 3x inventory does, you might
    > delete the file also.
    Good tip about the hist.ini file, I didn't know about that. It does not
    solve the sequence number error, but it does seem to force a full scan
    of the system and cause the new scan to be stored in the DB, which was
    not happening before.
    Thanks!

  • How to get the time length from send record command to record video really?

    I have two buttons. Record/Stop
    I press Record button to record the video and press Stop
    button to stop recording.Now,I spend 1986 ms from press Record
    button to press Stop button.
    But the flv file's length is 1920 or 1910 or 1915 ms.
    So I want to get the time length from send record command to
    record video really.
    Can you give me some suggests.
    Thanks!

    maybe you have lag in publishing.... are you try watch de
    NetStream.liveDelay() method?
    or start counting when NetStream.onStatus has
    "NetStream.Record.Start" and "NetStream.Record.Stop" in information
    objects....

  • How can we retrieve the Payload information from B2B

    Hello,
    We are trying to send the payload information back to the client for a failed BPEL Transaction from B2B's b2b_instancemessage view. We are enqueing messages to IP_OUT_QUEUE using BPEL. We see the payload coming correctly in the B2B Business Message Reports. But we don't see the payload coming in the b2b_instancemessage view for failed B2B transactions. How can we see the payload in b2b_instancemessage view for failed B2B transactions as well? or How can we retrieve the Payload information from B2B?
    Any help is greatly appreciated! Thanks. - Sam.
    Edited by: user12049162 on Dec 4, 2009 2:04 PM

    I am not sure about the PDK API to get the group name. But using LDAP API its easy to get the User Group.
    If you find the answer to get the group name using PDK API, Please update in forum. It will really help others.
    --Balaji S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I have copied over my music file to a new computer and the music shows on itunes but wont play. When I track where the song is located it is reading the wrong information. How do I change this as Edit Preferences has the right location

    I have copied over my music files to a new computer and the music shows on itunes but wont play. When I track where the song is located it is reading the wrong information. How do I change this as Edit>Preferences has the right location?

    Select one of the tracks with a broken link, press ctrl-i to Get Info. Say No when iTunes asks if you would like to locate the track, then look at the Summary tab for the location expects to find the file in.
    Now try to locate the file in question. The two locations should give a clue as to what to do next.
    Here is an example with a file I've deliberately moved from the new layout to the old pre-iTunes 9 layout.
    This means iTunes is expecting to find the file at:
    D:\iTunes\iTunes Media\Music\a-ha\Take On Me\01 Take On Me.mp3
    but it isn't there because I've moved it to:
    D:\iTunes\iTunes Media\a-ha\Take On Me\01 Take On Me.mp3
    which is where it would have lived back in iTunes 8 (though the media folder would have been called iTunes Music back then as well).
    If you can provide the expected and actual locations of a broken track I should be able to suggest the easiest way to resolve things.
    tt2

  • Error while executing SSIS package - Error: 4014, Severity:20, State: 11. A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)

    Hi,
    We are getting the following error when running our SSIS packages on Microsoft SQL Server 2012 R2 on Windows Server 2008 R2 SP1:
    Error: 4014, Severity:20, State: 11.   A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)
    SQL Server Data Tools and SQL Server Database Engine reside on the same server.
    We tried the following:
    Disabling TCP Chimney Offload
    Installed Windows Server 2008 SP1
    Splitting our SSIS code into multiple steps so it is not all one large continuous operation
    The error occurs during a BulkDataLoad task.
    Other options we are investigating with the engineering team (out-sourced, so delayed responses):
    Firewall configurations (everything is local, so this should not make a difference)
    Disabling the anti-virus scanner
    Are there other things we can try?
    Any insight is greatly appreciated.
    Thanks!

    Hi HenryKwan,
    Based on the current information, the issue can be caused by many reasons. Please refer to the following tips:
    Install the latest hotfix based on your SQL Server version. Ps: there is no SQL Server 2012 R2 version.
    Change the MaxConcurrentExecutables property from -1 to another one based on the MAXDOP. For example, 8.
    Set "RetainSameConnection" Property to FALSE on the all the connection managers.
    Reference:
    https://connect.microsoft.com/SQLServer/feedback/details/774370/ssis-packages-abort-with-unexpected-termination-message
    If the issue is still existed, as Jakub suggested, please provide us more information about this issue.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How do I read the display icon from the IStep interface?

    I would like to read the step icon from a step object for display on my custom UI. IStep::GetSmallIcon returns a LPDISPATCH, but I can't find in any of the documentation how to use that interface pointer to get the icon handle of the step. Is there an TS icon interace that I should query for?
    Thanks,
    Aaron

    Hi,
    ::GetSmallIcon returns a IPictureDisp. IPictureDisp has a property called DISPID_PICT_HANDLE which returns the handle.
    Here is an example code in CVI
    pictureH is a CAObjHandle(IPictureDisp)
    CA_PropertyGet (pictureH, &errorInfo, DISPID_PICT_HANDLE ,CAVT_LONG, &stepIcon);
    You can find more information at the following link in MSDN:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/ctin_p_4gfk.asp

  • The product I bought its not working as i expected, it doesn´t translate the exact information from pdf to excel, how can you help me or how can you return my money back....

    how can you help me

    What about adobé export PDF. ?
    Enviado desde mi iPhone
    El 07/05/2014, a las 23:00, Claudio González <[email protected]> escribió:
    The product I bought its not working as i expected, it doesn´t translate the exact information from pdf to excel, how can you help me or how can you return my money back....
    created by Claudio González in Adobe Reader - View the full discussion
    If you bought Reader, you were swindled, because it's a free program. And it has never been able of converting PDF files to any other format.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6363992#6363992
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Reader by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How to read the field type from field id of DynamicFldTbl

    Hi,
    In my application, i am using DynamicFldTbl, whch parses FML32 field table definition file. My field table definition file contains information about field names and its types.
    I checked the API of DynamicFldTbl and didn't find any API to get the field type from field it.
    Any way to read the field type from field id?
    Thanks in advance
    Raguraman

    Hi Raguraman,
    Once you have the field table, you can then create an FML32 buffer (TypedFML32) using the constructor that takes a field table, and then use the Fldtype() method on the specific field ID you wish to get the type of. I know this is sort of tedious and we should provide Fldtype() and some others on the field table class directly.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Trying to pay my bill, could you use the same information from last month

    Trying to pay my bill online, It keep saying wrong cvv, could you just use the same information from last month to pay bill? Haven't anything changed.

    Debit cards are no longer accepted in the iTunes Store, it seems. The current valid payment methods are listed here:
    http://support.apple.com/kb/HT5552
    You can try contacting the iTunes Store and asking if there is any way to use your card, but they probably will tell you that it's not possible.
    http://www.apple.com/emea/support/itunes/contact.html
    Regards.

  • Java API to read the Encrypted Values from Windows Registry settings

    Is there any Java API to read the Encrypted Values from Windows Registry settings ?
    My Java Application invokes a 3rd party Tool that writes the key/value to windows registry settings under : “HKLM\Software\<3rdparty>\dataValue”.
    This entry is in BINARY and encrypted with 3DES, using crypto API from Microsoft.
    3rd party software to encrypt the data stored in registry it
    either uses C++ code: and uses the call “CryptProtectData” and “CryptUnProtectData” or
    If it is a .NET (C#) it uses the call “Protect” or “UnProtect” from class “ProtectData” of WinCrypt.h from the library “Crypt32.lib.
    Note: The data is encrypted using auto-generated machinekey and there is no public key shared to decrypt the Encrypted data.
    Since the data is encrypted using auto-generated machinekey the same can be decrypted from a .Net / C++ application using CryptUnprotectData or UnProtect() API of WinCrypt.h from the library “Crypt32.lib.
    To know more about Auto-Generated MachineKey in Windows refer the links below
    http://aspnetresources.com/tools/machineKey
    http://msdn.microsoft.com/en-us/library/ms998288.aspx
    I need to find a way in Java to find the equivalent API to decrypt (CryptUnprotectData) and Microsoft will automatically use the correct key.
    But i couldn't find any informato related to Java APIs to enrypt or decrypt data using auto-generated machinekey.
    Is there a way to read the encrypted data from Windows regsitry settings that is encrypted using the Auto-Generated Machine Key ?
    Kindly let me know if Java provides any such API or mechanism for this.

    If the symmetric key is "auto-generated" and is not being stored anywhere on the machine, it implies that the key is being regenerated based on known values on the machine. This is the same principle in generating 3DES keys using PBE (password-based-encryption). I would review the documentation on the C# side, figure out the algorithm or "seed" values being used by the algorithm, and then attempt to use the JCE to derive the 3DES key using PBE; you will need to provide the known values as parameters to the PBE key-generation function in JCE. Once derived, it can be used to decrypt the ciphertext from the Regiistry in exactly the same way as the CAPI/CNG framework.
    An alternate way for Java to use this key, is to write a JNI library that will call the native Windows code to do the decryption; then the Java program does not need to know details about the key.
    That said, there is a risk that if your code can derive the key based on known seeds, then so can an attacker. I don't know what your applicatiion is doing, but if this is anything related to compliance for some data-security regulation like PCI-DSS, then you will fail the audit (for being unable to prove you have adequate controls on the symmetric key) if a knowledgable QSA probes this design.
    Arshad Noor
    StrongAuth, Inc.

Maybe you are looking for

  • Can't RDP to Windows Home Server 2011

    I saw a post from several years ago that said Verizon's TOS doesn't allow servers.  Couldn't find anything recent so was wondering if it still applies now that WHS 2011 and other NAS have come out targeted for home users (read...low bandwidth require

  • Time Capsule as Wireless HD with TIGER

    I have TIGER, and just got the Time Capsule. I understand that if I want to use Time Machine, I have to have Mac OS 10.5. 2 or higher. Now, I simply want to use TC as an external wireless hardrive, and put all my iTunes, movies, etc., onto it. But ho

  • When is aperture going to support RAW files for Olympus OM-D E-M10

    When is aperture going to support RAW files for Olympus OM-D E-M10? Ann

  • LR2 Memory Issues

    LR2 seems to have memory issues. My most frequent experiences with these are: - Exporting about 60-100 images at a time. Sometimes LR2 will export all of them, sometimes it will fail and tell me that it is out of memory. Exiting and restarting LR2 al

  • Editor suggestions

    Hi people!,      Some days ago, i had formated my pc, and now, after reinstall the netweaver, the sap editor suggest how to autocomplete the commands -ok- but if i want to select the word suggested, i have to do it JUST with TAB key. I want to do it