Very slow performance when assigning value to a form item

Dear all,
I have an add-on form that contains 30 text edits. I did not creat the from with screen painter but positioned them by marking each item's top and left position in the new sub.
I have named them as 'edBox1', 'edBox2'......, 'edBox30'
At a point I need to assign value to each edit text, I have queried the content from DB into one recordset. However, when I start to assign values to each edit text, the performance became very slow.
my code is as follow
me.form.items.item("edBox1").Specific.String = recordset.field.item(0).value.tostring
me.form.items.item("edBox30").Specific.String = recordset.field.item(29).value.tostring
I found that B1 seem to iterate each item on the form in order to find the item I specified.
so I think I should specificy items earler.
Now for each item I dim an object for it at new sub
Dim oedBox1 As SAPbouiCOM.EditText
Dim oedBox30 As SAPbouiCOM.EditText
and while creating forms, I specificy each item to the matched object
Then I assign values to items by
oedBox1.String = recRetrive.Fields.Item(0).Value.ToString
oedBox30.String = recRetrive.Fields.Item(29).Value.ToString
However, B1 still iterates to find the item and the performance is still slow, does anyone has a better solution to this issue? please kindly advise.
Thank you
Alan
Edited by: Chih-Peng Chen on Dec 17, 2007 8:42 AM

Hi Chen,
you can find one example under SDK samples which will guide on using datasources
Bind the controls to dbdataource and then query the datasource.
then update form using oForm.Update(),this will automatically fill the values in all edit boxes and it will be very fast as well
Hope it helps you
Regards
Vishnu

Similar Messages

  • InDesign CC 2014 very slow performance when dragging images and changing text

    InDesign CC 2014 very slow performance when dragging images and changing text.
    Running on 2010 Macpro 2.4GHz. 8GB RAM. Any solutions? I've read through many forums on this and tried several fixes.

    Have exact same issue on  my Windows 7 machine. Resetting preferences is a workaround.
    So I start InDesign whilst holding down these keys.
    Ctrl + Alt + Shift (Windows) or Cmd + Ctrl + Opt + Shift (Mac)
    Whilst inDesign is usable again with this fix- I have to do it every time so it trashes all my preferences so NOT GOOD long term fix. Otherwise InDesign freezes and can only be stopped by forcing a quit.
    I have manually deleted the preference files and I have created a brand new admin account - but still no luck - will be onto support tomorrow

  • Very slow performance when scrolling through view object

    Dear reader,
    I've encountered the following problem (JDeveloper 9.03.2) I have a (predefined) ViewObject on top of a table, which contains ca. 3000 records.
    The user is allowed to choose a record (for instance through a JUNavigationBar), as soon as 'last' record is clicked in the navigation bar, it takes minutes(!) before it is actually shown. It seems it is building up the entire ViewObject (in memory) with all the records initialized, until it finally reaches the last record. The same thing happens if I manually call:
    vo.setRangeStart(3000), again it takes several minutes. The range size itself is 10. A call to vo.last() has the same effect as well.
    Am I doing something wrong? And if so what? And if this is normal behavior, what can I do to improve the performance? It is impossible to work like this... Thank you for your time!
    Regards Martijn

    Need suggestions...
    I have a jclient application that at one points does a batch download of data ~5k rows. Before I iterate through the records I call the setforwardOnly on the view object as well as its row set...
    so something like
    vo.getRowSet().setForwardOnly(true);
    vo.setForwardOnly(true);
    I only have read only access to these databases so I can't create temp tables on the database and I don't have any other database to point bc4j to to save the transaction information.
    Is there a way to force it to use a file or anything else?
    I don't want to turn off cacheing all together since there might be a case where user might accidently select a huge number of records to d/l.
    I'm using jdev 9.0.3.2.

  • Very slow start when initially entering the service ticket in Web UI (2007)

    We seem to encounter a very slow start when initially entering the service ticket in Web UI (2007). Once in all seems speedy enough. I don't have my access arrange for the Service marketplace (OSS notes) yet so can't check if there is a known solution, which I suspect there is. Has anyone encountered this problem and possibly resolved it?.
    Jason.

    Previous posts have highlighted the following notes:
    1048388 General Performance improvements of BSP transactions
    1162605 Network performance for CRM 2007 Webclient
    1162685 SAP CRM 2007 Webclient Performance
    821045 Poor performance of MIME objects in BSP pages
    581316 BSP Delta-Handling for CRM (BASIS 620 SP17)
    However, I was wondering whether anyone has come across any other small changes that may have a major effect. A quick-win I guess you call it. From bitter experience I know there are rarely quick wins when it comes to optimisation due to the amount of re-testing etc.
    But any further advice would be welcome.
    Jas.

  • E50 very slow performance

    my E50 is giving very slow performance anyway to tune it up ?? dosn't hangs but its slow ?? any solution ps whats the best antivirus to install in E50 ?

    I don't use your same workflow, and I assume you're shooting RAW. However,  after I have built 1:1 previews in LR (which takes a LONG time), when I click on a file to decide if it's sharp or not, it still takes 5-10 seconds for each file to load. And my computer isn't slow, and I have the same issue on my laptop, which is new and fast. I haven't seen a satisfactory answer to this problem, nor much acknowledgement from Adobe. My files are from a Nikon D7100 with 24 megapixels, so the file size is likely a factor.
    If you are shooting the type of subjects where you use 1:1 previews primarily to determine sharpness, you could consider Photo Mechanic (unfortunately it costs $150) as the first step in your workflow. It uses the embedded jpg files in the RAW file, so it loads 1:1 jpg previews almost instantly. Sports and nature photographers use this product all the time, mostly to delete losers.

  • Formatted Search with DI  leads to a very slow performance - HELP....

    Hello There
    I have defined some formatted search in OPCH - everything is working fine.
    I have added some logic to this form via the DI.(handlling 1 item press_event), and I get a very very slow performance - the ADDON-EXE jumps TO 230MEGA of memory, and entering values to each row in the tables/item in the form takes about 15 seconds.
    Any suggestions?
    RGDS
    HAGAI

    Hi Hagai,
    Normally an addon written using the DI would take up 60-80MBs.
    Are you filtering out all events except for the item press event for the form? If you are not filtering events then this can have quite a drastic affect on performance.
    What logic have you got behind the press event? If the addon exe is ballooning out to 230MB then it suggests that there is either a problem with a memory leak or that an error is occuring in the code. I would recommend putting try/catch clauses at suitable places in the code and maybe specifically setting objects to null and calling the .NET garbage collector to try and minimise the potential for memory leaks.
    Are you sure that it is the combination of the formatted search and the addon that is causing the problem, i.e. if you take away the formatted search but leave the addon do you still get poor performance or does everything speed up?
    Hope this helps,
    Owen

  • My firefox is running very slow, espically when I am typing, scrolling and in many simple activities. On the other hand my internet explorer is going normally like simple browser.

    My firefox is running very slow, espically when I am typing, scrolling and in many simple activities. On the other hand my internet explorer is going normally like simple browser.

    Hi,
    Please try disabling all the features under '''Browsing''' in '''Tools '''('''Alt''' + '''T''') > '''Options '''> '''Advanced '''> '''General'''. You can later toggle the values to find an optimum solution. Please also [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u see this.]
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://support.mozilla.com/en-US/kb/Page%20Info%20window Page Info] Tools (Alt + T) > Page Info, Right-click > View Page Info
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [https://support.mozilla.com/en-US/kb/Viewing%20video%20in%20Firefox%20without%20a%20plugin Viewing Video without Plugins]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    [https://developer.mozilla.org/en/Command_Line_Options#Browser Firefox Commands]
    [https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting Basic Troubleshooting]
    [https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36 After Upgrading]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
    [http://kb.mozillazine.org/Testing_plugins Testing Plugins]

  • Constant freeze and slow performance when wake up

    hi,
    my laptop freezes all the time  like when i play music for long time especially when norton performs a background check.
    also when i open it and it was on sleep it becomes very slow when i open chrom, or play a movie.
    alot of time  sudden stop of the cruser and very slow performance that it can't even opens the my computer.
    I always have to restart the windows.

  • Exchange 2013 CU5 , Exchange Power Shell very very very slow reasponse when using get command.

    Exchange 2013 CU5 , Exchange Power Shell very very very slow reasponse when using get command.
    First my organize has Exchange on 2 site like
    site A (internet facing) : 2CAS 2 MB all are Services pack1
    site B (DR Site , no user active on this site) : 2CAS 2MB all are Services pack 1
    so today I upgrade Exchange 2013 from SP1 to CU5 start on "site B" and I found this issue and the details is....
    When I open EMS on any CU5 for query something (like get-mailboxdatabasecopystatus) the response return very slow and some query will not return at all (like get-owavirtualdirectory).
    But If I using EMS on SP1. Everything is ok then I try to use EMS on SP1 connect to CU5 and try to query something. the result is
    some query command cannot return for any result that are server on siteB (just some query command)
    Problem
    EMS on CU5 return very slow result.
    EMS on SP1 still ok.
    Does anyone face this problem before for CU5??? Please help me figure this out. Thank you
    reply from Social.technet

    Hi,
    Have you used the above cmdlets to check your Exchange server health?
    "all other command that I ran on EMS didn't logged on event viewer.", my environment is the same with you. I use Exchange 2013, only errors will be displayed in MSExchange Management. Actually, it is not related to slow EMS response.
    Hope it helps.
    Best regards,
    Amy Wang
    TechNet Community Support

  • I am having a problem with my cs6 running very slow and when i save i am getting an error message that says, "This document is bigger than 2 gb (the file may not be read correctly by some TIFF viewers.) please help

    I am having a problem with my cs6 running very slow and when i save i am getting an error message that says, "This document is bigger than 2 gb (the file may not be read correctly by some TIFF viewers.) please help

    wen6275,
    It looks like you're actually using a camera or phone to take a photo of your monitor.
    That's not what is commonly known as a "screen shot". 
    It looks like you're on a Mac.  Hitting Command+Shift+3 places a capture of the contents of your entire monitor on your Desktop; hitting Command+Shift+4 will give you a cross-hairs cursor for you to select just the portion you want to capture.
    I'm mentioning this because I fear I'm not construing your original post correctly when you type "I am working with a large files [sic], currently it has 149 layers, all of which are high resolution photographs", so I'm wondering if there's some similar use of your own idiosyncratic nomenclature in your description of your troublesome file.
    Perhaps I'm just having a major senior moment myself, but I'm utterly unable to imagine such a file.  Would you mind elaborating?

  • Very slow responce when working with Office file on DFS-Share

    Very slow responce when working with Office file on DFS-Share
    We have implemented the following configuration
    Domain level Windows 2000. Two member servers with Windows Server 2008 R2, sharing the same DFS namespace with, at the moment, one folder target called Home.
    Users complaining that the access to different MS Office files is very slow. Even creating a new MS Word document using right click context menu takes up to 4 minutes to open. Saving, for example, one singe Excel sheet takes also few minutes.
    Tested with both, MS Office 2007 and MS Office 2010. Makes no difference. When using Office 2010 you can see the message like contacting:
    \\DomainName\Root\Home\UserName. Other files like TXT, JPG or PDF are not affected.
     What makes the thing really weird is the fact, that the behavior described above can absolutely change after client machine being rebooted, suddenly everything becomes very fast and this condition can revert back again just after the next
    reboot.
    Considerations until now:
    1. This has nothing to do with the file size. Even tiny files are affected.
    2. AD Sites are configured correctly and the client workstations see themselves in the correct sites.
    3. This is not an Office issue. If I map my folder target not as DFS, but directly as shared network drive
    \\ServerName\Root\Home\UserName , everything functions as expected
    What makes me suspicious: when using f.e. TCPView to monitor connections, I can see, that each time I make any operation on an office file, there will be a connection established to one of the domain controllers, sometimes to remote ones,
    located in other countries. But on the other side, even if the connection is established to the nearest DC, operations are still very very slow!
    Just forget to say. All clients are Windows 7
    Thanks to all who respond.

    Dear all,
    sorry for the delayed reply. The problem has been solved now and since September 19<sup>th</sup>. everything is functioning as expected.
    What was done:
    Deleted replication targets excepting the initial ones
    Carefully recreated folder targets
    Deleted and recreated  replication groups
    Disabled SNP features on both namespace servers
    Created EnableTCPA registry entry
    Checked that the following Updates are installed
    http://support.microsoft.com/kb/2688074
    http://support.microsoft.com/kb/2647452
    Concering Office File validation KB2553065 - This Update was already declined on our WSUS server
    Kind Regards
    Eduard

  • Acrobat very Slow performance (50% CPU usage)

    My acrobat 9 PRO (9.3.2) has suddently started to use 50% of my CPU usage everytime a *.pdf document is opened.
    It is the task Acrobat.exe which is the problem. This results in VERY slow performance and I cannot use the review function without adobe is crashing!
    This has not always been a problem!
    Does anyone know why this is happening?
    I have tried to uninstall and reinstall acrobat, without any luck!
    Thanks
    Peder

    You probably have the same problem as I do. I use version 9.3.3 on a fairly powerful machine with Windows vista. In my case, the problem is related to the weblink.api (http://forums.adobe.com/thread/675941?tstart=0). I also uninstalled, reinstalled, repaired - nothing helps.

  • Very slow response when I click on a link, but almost instant response if I go back and click a second time.

    I often get very slow response when I click on a link, any link. But if I go back and click on the link again, then the page will open almost immediately. I discovered this by accident and noticed that this happens every time. It would be nice if I got fast response on the first click without having to do this silly procedure and it seems to me that there's a simple fix. I would appreciate it if you could help. I'm open to any and all ideas. Thanks again.
    Sincerely,
    Al
    Version 26.0 Firefox, Windows XP, sp/3

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Jsp and sql - very slow performance

    Hello,
    I am new to java and working on my site.
    I encountered very low performance when I have implemented this function.
    This functions counts responses for each ad.
    Could you share know-how about better implementation?
    in index.jsp I have this call:
    out.println("<td align=\"center\">" + getRecords.countOffers(A.getIdads()) + "</td>");
    this is getRecords.countOffers:
    public static int countOffers(int ID) {
    int offersqty = 0;
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection con = (Connection) DriverManager.getConnection(DBurl, user, password);
    Statement stmnt = (Statement) con.createStatement();
    String readTopic = "SELECT idoffers FROM `wishloft`.`offers` where idads='" + ID + "';";
    ResultSet displayTopic = stmnt.executeQuery(readTopic);
    while (displayTopic.next()) {
    offersqty++;
    displayTopic.close();
    con.close();
    } catch (Exception e) {
    return offersqty;
    }

    Well, for starters, when posting additional code, please use tags.
    As for "looking" correct, I would offer these suggestions:
    - Use a PreparedStatement instead of just a String to build your query (as I suggested earlier)
    - Since you are expecting only 1 record from your query, why use a while() loop?  If someone else has to come in and look at your code, it could lead to confusion.  Just get the first record and process it without any loops.
    Also, only you can tell us if it performs correctly, because you should know what the results are since it's your data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • My Photoshop CS3 goes very slow/choppy when I have a selection made.

    Hello,
    My Photoshop CS3 goes very slow/choppy when I have a selection made, with those little moving lines indicating the selection (the lines that look like walking ants). When I'm adding to the selection, it's fine again, because the "ants" aren't moving, same with when I hit Q to enter Quick Mask Mode--as long as the "ants" aren't moving, my Photoshop isn't slow. Is there any way to fix this? To either speed up Photoshop or to stop the "ants" from moving, and simply allow selections to be indicated by broken lines, but not moving broken lines?
    Thanks

    Operating System: Windows 7 Ultimate 32-bit (6.1, Build 7600) (7600.win7_rtm.090713-1255)
               Language: English (Regional Setting: English)
    System Manufacturer: Tyan Computer Corporation
           System Model: S2668 Tiger i7505              
                   BIOS: PhoenixBIOS 4.0 Release 6.0    
              Processor: Intel(R) Xeon(TM) CPU 3.06GHz (4 CPUs), ~3.1GHz
                 Memory: 4096MB RAM
    Available OS Memory: 3072MB RAM
              Page File: 2548MB used, 3589MB available
    49.9 GB of 465 GB free.

Maybe you are looking for

  • Java.util.regex and replacing patterns with function calls

    Hi everyone, I'm in terrible need for help. Any advice is much appreciated. I have the following sentence in a file. The sequence of numbers is actually a date in seconds since 1970. I need to identify the 9 or 10 sequence of numbers send that to a m

  • Re: Using already running Tomcat server for development.

    Hi Nick, Yes, you can use existing Tomcat Server for debugging app developed with NitroX. And you can refer to Help > Help Contents > NitroX User Guide > NitroX Tour > Running and debugging the application. We do support Tomcat 4.0.x to Tomcat 5.0.x.

  • IWeb: all pages empty

    When I create a site with iWeb, once published, all the pages are blank. I have tested several servers. But I have the same problem. Can anyone help me? Link: http://www.queenglamourb.it In the past I have already published several sites. Never a pro

  • Script error when opening Contribute "An error has occurred in the script on this page"

    This error pops up every time I connect to my work website. I'm not sure what the issue is! If anyone could give me some insight then I can work towards the solution. Thank you in advance!

  • Boolean logic for Smart Mailboxes?

    So all my incoming email goes thru a mail filter and I maintain a separate mailbox as a logfile. This is so that I can view the log online via a web client. The log is basically a mail box whereby I trip off the body of the message and annotate how t