Bug report (and solution): adding multiple records through Java API in bulk

I have found some bugs in the Java API (version 4.1.25) that makes it impossible to add mulitple values in bulk to a RECNO database. The fixes are as follows:
MultipleEntry.java, line 80:
"DbUtil.int2array(curr_off, this.data, pos);"
should be replaced by
" DbUtil.int2array(recno, this.data, pos);"
MultipleRecnoDatabaseEntry.java, line 130:
"return append_internal(data, doff, dlen, recno);"
should be replaced by
"return append_internal(data, offset, len, recno);"
Regards,
Johan Walters

Hello,
It looks like there were some corrections to this area in the post 4.1 i.e. 4.2 release. And I do not see these same issues in the current 5.1.25 release. If you do find them in the current release, just let us know.
Thanks,
Sandra

Similar Messages

  • Adding Multiple Records with Express

    Hello All,
    We have a CRUD application written in Express 2.0 that allows users to
    enter part numbers and associated information. Our part numbers are
    structured as a prefix, alpha, suffix and 'M' or 'P' number variations :
    1 AB 2 P3 for example. We have provided functionality to allow the
    user to enter multiple P or M variations all at once, say 1 AB 2 P1 thru
    P100,
    using a dialog box where they enter the starting number, ending number
    and step.
    The problem comes in the AddRecordsToSave method.
    This method correctly builds the array of BusinessClass needed to be
    passed to the Save method, however, the Save method adds only the
    initial record (the one from the original Express data entry screen)
    to the database.
    I have traced the problem to the BusinessClient.Update method called
    from
    Save. I believe I am missing some query information that should be
    built into
    AddRecordsToSave, but I am completely unsure of how to provide this.
    As you can see in the attached code, we are using the LogAttr method to
    post
    changes. Apparently this is not enough. What am I missing here?
    The InstanceStatus key of the added records is set to ST_EMPTY by
    default....
    I have tried forcing this to ST_UPDATE, only to receive an error that it
    should
    be ST_EMPTY......?? I am confused. If anyone can shed some light on this
    for me,
    I would appreciate it. Thanks for any help.
    Scott Guman E-mail: [email protected]
    IRM Analyst II Phone: (610) 709-2144
    Mack Trucks, Inc. Fax: (610) 709-4713
    Allentown, PA 18105

    Hi There,
    If attr is not specified in your LogAttr() call, the
    BusinessClass
    will be put in the update state but not attributes will
    be logged.
    That may be the reason why only the displayed record(
    fetched from
    the DB ) is getting logged, but not the new records.
    I think you should use ATTR_SIMPLE with LogAttr. This
    will cause
    all the attributes to be logged and a proper query to
    be built
    to insert the newly created record. I am no Express
    Guru,
    but it works fine for me. Also, try not to modify
    InstanceStatus directly.
    Sometimes it might lead to inconsistencies. The online
    help
    The Add Records to Save example really helps.
    Good luck!
    Ajith Kallambella. M.
    Forte Systems Engineer,
    International Business Corporation
    -----Original Message-----
    From: Scott Guman [SMTP:[email protected]]
    Sent: Wednesday, September 16, 1998 9:34 AM
    To: 'Forte Users'
    Subject: Adding Multiple Records with Express
    Hello All,
    We have a CRUD application written in Express 2.0 that
    allows users to
    enter part numbers and associated information. Our
    part numbers are
    structured as a prefix, alpha, suffix and 'M' or 'P'
    number variations :
    1 AB 2 P3 for example. We have provided functionality
    to allow the
    user to enter multiple P or M variations all at once,
    say 1 AB 2 P1 thru
    P100,
    using a dialog box where they enter the starting
    number, ending number
    and step.
    The problem comes in the AddRecordsToSave method.
    This method correctly builds the array of BusinessClass
    needed to be
    passed to the Save method, however, the Save method
    adds only the
    initial record (the one from the original Express
    data entry screen)
    to the database.
    I have traced the problem to the BusinessClient.Update
    method called
    from
    Save. I believe I am missing some query information
    that should be
    built into
    AddRecordsToSave, but I am completely unsure of how to
    provide this.
    As you can see in the attached code, we are using the
    LogAttr method to
    post
    changes. Apparently this is not enough. What am I
    missing here?
    The InstanceStatus key of the added records is set to
    ST_EMPTY by
    default....
    I have tried forcing this to ST_UPDATE, only to receive
    an error that it
    should
    be ST_EMPTY......?? I am confused. If anyone can shed
    some light on this
    for me,
    I would appreciate it. Thanks for any help.
    Scott Guman E-mail:
    [email protected]
    IRM Analyst II Phone: (610) 709-2144
    Mack Trucks, Inc. Fax: (610) 709-4713
    Allentown, PA 18105
    << File: AddRecordsToSave.txt >>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Vista "Problem Reports and Solutions" - Compatibility issues?

    The Visa +Problem Reports and Solutions control panel+ is reporting three problems which I cannot seem to be able to find a resolution to.
    ( So far I've just installed Vista 32 business ed. on my iMac 20". Installed bootcamp drivers, updated bootcamp to 2.1 and applied Vista updates.)
    *The Problem Reports and Solutions control panel reports the following:*
    1. Download and install the driver for Apple performance counter
    This problem was caused by Apple performance counter, which was created by Apple Inc..
    2. Compatibility issue between Intel 82801GBM (ICH7-M) LPC Interface Controller - 27B9 and Windows. This problem was caused by a compatibility issue between Intel 82801GBM (ICH7-M) LPC Interface Controller - 27B9 and this version of Windows. Intel 82801GBM (ICH7-M) LPC Interface Controller - 27B9 was created by Intel Corporation and is distributed by Apple Inc..
    3. Problem caused by Apple Desktop Null Driver.
    This problem was caused by a compatibility issue between this version of Windows and Apple Desktop Null Driver. This product is usually distributed by the company that manufactured your device or computer. Note. If you bought Apple Desktop Null Driver from a retailer and installed it yourself, you will need to contact its manufacturer.
    Are these genuine, and if so, is there a solution? No solutions are proposed by Vista itself.
    Mac OS 10.5.5 , bootcamp 2.1
    Message was edited by: noutram

    A performance counter is not something that is usually in use by any application except by the developers of the unit itself. nothing to be alarmed about (well, except perhaps that it should have been removed).
    A null driver is (as the name indicates) null, there is no functionality assigned with it. MS error message is just brilliant "there is an error in your null driver", like what, there is no functionality in a null driver. So no problems there either.
    I got the 2 above error messages on the very first generation 17" MBP for ages and so far not seen any impacts in it for my work.
    The Intel issue is interesting, it might be a good idea to see if Intel has an updated driver for the problem.

  • How to read particular Sector and Block in Mifare 1k through Java?

    Hi Friends..
    Do you know how to read particular Sector and Block in Mifare 1K through Java?..
    I've created the simple application that read data from Mifare 1K, but i've problem when i want to read the other sectors and blocks..
    i tried to read the blocks by using this APDU command :
    FF B0 00 00 10  //read data in Sector 0 and Block 0
    FF B0 00 01 10  //read data in Sector 0 and Block 1
    FF B0 00 02 10  //read data in Sector 0 and Block 2
    FF B0 00 03 10  //read data in Sector 0 and Block 1How to read the other sectors and blocks?..
    I've tried to read data in Sector 1 and Block 5, so i tried to send this APDU command : FF B0 01 05 10, but i got this error : *6986*
    Actually, it doesn't matter if i use MifareWnd, but i want to create my own application that Read/Write From/into Mifare 1K..
    Please help me regarding this..
    Thanks in advance..
    Edited by: Leonardo_Carreira on Mar 31, 2010 2:47 AM
    Edited by: Leonardo_Carreira on Mar 31, 2010 2:50 AM

    Hi Sidd,
    You should check out the Example Finder under Hardware Input and Output»IMAQ»Signal Input and Output for examples of triggering in framegrabbers.
    Stephen Meserve
    National Instruments

  • Crystal Reports and connecting to multiple tables in a dataset - I'm Going Crazy!!

    This is my first application, first report and first everything.  Wouldn't you know the report I am trying to produce is probably more difficult!!  What is happening is that I have a form(screen) up in my application with the information displayed on it from a recrod in a table that I want to put on a report to be view and/or printed and eventually down the road I want to incorporate a signature.  One step at a time though, here is what I have accomplished.  I have created the report, I have gotten it to display in the viewer but it will not push the data from the table that I want displayed.  It only displays the text that I have typed on the form.  This is a Visual Basic application created in Visual Studio 2005 using a SQL database.  If you need more information then just ask and I will try to fumble through and tell you what I know.  (Oh and to top it off............I am also trying to get information to display from other tables also (codes connected to descriptions etc.))
    Any help would be really appreciated as I have went through tutorials, read white papers, tech notes and anything else I can find but I just can't get it to work!!
    Thanks!

    You do need to give more information. To better help, we would need to know the database, when you say SQL do you mean SQL Server, how you created the dataset, whether there are multiple tables in a single dataset or multiple datasets, etc.
    The report appears to be running so the underlying issue as you know will likely be the dataset. You may want to confirm the dataset does in fact have data in it.  Returning a simple count will let you know there are rows. If you used the components rather than code to create the objects you can also see the data returned in the fill process.
    Once you know you have data in the dataset, you can check your reports connection to the dataset.
    Just hang in there... the problem is probably a simple fix. I am sure others will follow on with more suggestions.
    Regards,
    John W.

  • Multiple records through bean

    User enters multiple records on JSP. Each record represent a instance of Java bean. I am having hard time in receiving these beans (or array of beans) on the servlet. Does someone know how to receive data through beans.

    User can inputs all the record at one time. E.g. User see 5 rows to enter. User may enter all the five or only one also. I want that all the data entered by the user should be captured throught beans. Do you feel i should do following.
    First show one record and then ask user to press add button (if he/she wish to add more records). On add button write the code to add the existing bean in the session object , show one empty row and also make first record un-editable. When user submit button then extract all beans from the session object.
    I tried other ugly way.
    <jsp:useBean id="tradeBean" class="trades.Trade_bean" scope="request" >
    <jsp:useBean id="tradeBean1" class="trades.Trade_bean" scope="request" >
    I call one more tradeForward page in between which associate the form variable to the right bean using some thing like this.
    <jsp:setProperty name="tradeBean" property="stockName" param="stockName" />
    <jsp:setProperty name="tradeBean1" property="stockName" param="stockName1"/>
    Thanks a lot for your reply.

  • I downloaded ios 8 and  was bug reporting and it crashes when I log in

    I downloaded ios 8.0 on my iPod touch 5 and when I log in to the bug reporter it crashes

    Gustavoizzo wrote:
    I downloaded ios 8.0 on my iPod touch 5 and when I log in to the bug reporter it crashes
    If you're not a developer, aren't you glad that you beat the system?

  • Are extension developers allowed to keep only favorable reviews by claiming negative reviews of their product are "misplaced bug reports" and deleting them?

    Twice Georgio Maone deleted my negative, 1-star reviews about NoScript, claiming they were "misplaced bug reports." Is this acceptable Mozilla practice for developers to keep their ratings high by deleting low ratings?

    I have found that everything on Mozilla is subject to censorship and lots of it. If they dont like what you say then either your account will be disabled or the comment will be removed or both.

  • HCM Processes and Forms - Create multiple records of one infotype (eg 0008)

    Dear all,
    I'm trying to create two new records in infotype 0008 (basic pay). Regarding it's time constraint 1 it should like the following:
    Before
    01.01.2010 - 31.12.9999 - 2000u20AC
    After
    01.01.2010 - 08.11.2010 - 2000u20AC
    09.11.2010 - 31.12.2010 - 2500u20AC
    01.01.2010 - 31.12.9999 - 3000u20AC
    So I want to add two splits two the record. One is easy, as it's done by the SAP_PA operation. I experimented with the record indices and duplicating my fields, but it didn't work. Another idea would be to retriggerd the SAP_PA several times using scenario steps.
    Can you give me a hint, by which lever multiplee splits can be achieved? Or is this not possible at all?
    Thanks in advance,
    Peter

    Thanks for your fast reply.
    Knowing this as a fallback is comforting. I just want to ensure, that I don't apply any coding, if a task is also possible by customizing.
    Another idea I had in the meantime was to execute the SAP_PA several times. Do you have any experience, if this works to create multiple records in one infotype?
    Edited by: Peter Gilberg on Nov 9, 2010 2:34 PM

  • Bug report and question about 2.0

    ok I have 2 things I need to post about. First is a bug report.
    Under settings, brightness category the slider does not function correctly. It refuses to slide like it did in 1.1.4.
    Second the capacity has dropped from 14.84GB to 14.6GB. What is taking up 240 MB of space?

    thanks for info. Sorry I didn't post this earlier but the slider has corrected itself. Also the is probably being used by the os

  • Adding batch records using DI API 6.7

    I am trying to add multiple records to a UDT using the DI API. When I add the second and subsequent records and do not specify the values for certain of the fields, they contain the old values when I add the record to the table. I tried using "" as the value but this sets the char fields to empty strings and the numeric fields to 0's. I would like to have these values be null in the DB but the statement:
    tbl.UserFields.Fields.Item(k).Value = System.DBNull.Value;
    Does not work. Only the following seems to work but is not what I want.
    tbl.UserFields.Fields.Item(k).Value = "";
    Do I have to delete and recreate the tbl object for each record?

    Hi Gary,
    Unfortunately you are right and found a gap:
    DI API does not support setting Value back to "empty"/"null"... - except for memo fields.
    I.e. the only way to get this is currently to delete / recreate the tbl object for each record - or use a SQL statement in case this is not tolerable in terms of performance.
    Regards,
    Frank

  • Set browser proxy through JAVA API - is it possible?

    I have a proxy that listening http traffic. And I need a solution to set my browser (it may be IE, FF, Safari) options to go through this proxy. Does anybody know possible solutions?

    If each browser has a Java API you can use that, there is no support for assorted browsers built in to Java.

  • Executing Workflow Task through JAVA APIs

    Hi,
    I'm able to send the workflow task to the next step with JAVA APIs.
    The problem comes here if I try to log in into MDM through IConnectorGatewayService.
    If I get a connection to MDM through CatalogData's login method, everything works fine, task is getting executed properly. But, if I try to run the same code where I get the connection through IConnectorGatewayService, the same code doesn't work.
    Surprisingly, there is no problem in retrieving data from MDM while connecting with ConnectorGatewayService.
    Please do let me know if I need to specify some parameters while getting the connection with IConnectorGatewayService so that I can change the workflow task status.
    Thanks and Regards,
    Mausam

    Hi Mausam
    Please go through this document u will get the solution
    https://help.sap.com/javadocs/MDM/current/index.html
    https://help.sap.com/javadocs/MDM/current/index.html
    I think it may help you
    Regards
    Hari

  • Sign pdf doucment  with digital signature multiple times using java api

    Our web  applications generates a pdf using jasper reports, Our users download pdf from our app sign it manually and then scan and upload  it, we want to move away from this and use digital signatures.  The generated pdf must be signed by several   users , I want to try adobe livecycle java api   to sign my pdf, please advice if are there any tutorials for this and is there a trial version   I can use   ,download link  etc. pelase advice.

    You can download the trial version of LiveCycle ES4 from here (http://www.adobe.com/cfusion/tdrc/index.cfm?product=livecycle)
    Here is the video training for LC -  http://www.adobe.com/devnet/livecycle/videotraining.html
    Here is the java sample codes for digital signatures - http://help.adobe.com/en_US/livecycle/11.0/ProgramLC/WS624e3cba99b79e12e69a9941333732bac8- 7513.2.html
    Hope this helps.
    ~ Varun Nohria

  • Extract image and Features from the Catalog via JAVA API

    Hello,
    I would like to Extract image from the Catalog via JAVA API, Can anybody help on that? I also tried to extract the Features field form the Catalog but results in the error "Features field not found" Any ideas what could have wrong?
    Many thanks,
    Dharmi

    Hello,
    Can anybody tell me where i can find the latest JAVAAPI reference guide? I found the one for MDM 5.5 SP 1 but that also refers to the last parameter of the CatalogCache.Init as int and not string.
    I looked up in service.sap.com/instguides -> SAP Netweaver -> Release 4 -> Installation and there only following 3 files are there for MDM 5.5 SP2
    MDM 5.5 SP02 - Configuration Guide  SAP MDM
    MDM 5.5 SP02 - Installation Guide   SAP MDM
    MDM 5.5 SP02 – ERP-MDM Field Mapping and Check Tables
    Regards,
    Dharmi
    Message was edited by: Dharmi Tanna
    Message was edited by: Dharmi Tanna

Maybe you are looking for