Problem with table paging [PDK for NET]

Hi All,
I have a problem with table paging in PDK for .NET (ver 2).
The Table has 14 visible rows.
The lead selection is set to "SINGLE"
When the user selects a row I can use
Table1.SelectedKeys(0) Mod Table1.VisibleRowCount
in order to get the info of the selected row.
If I will page using the "Prev/Next" page of the Table UI element it will also work.
However, when I press "Prev/Next" item and then select a row it chooses the wrong row.
(See picture: http://img509.imageshack.us/img509/3882/table5tq.jpg)
What can I do in order to solve the problem?
Thanks,
Omri

Hi Omri,
how are you doing ?
The SAPTable is similar to a DataGrid control and need to be bound to the datasource on every postback
a good idea is to keep the dataset available in the page or on the server ( so that you dont need to keep making expensive fetch operations
The selected row is affected by the recordset (dataset) and needs additional programming
A work around for the selected row issue is to save it in a server side hidden variable (or anything that will persist) and read and set the value in the page / next button handler
with respect,
amit

Similar Messages

  • Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination

    Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination
    Problem in committing transactions in Multiple Forms (Oracle Forms) with POST built-in command:
    Consider that the following statements are written in WHEN-WINDOW-CLOSED trigger of a called form.
    Statements in called form (Form name: FORM_CHILD):
    go_block('display_block') ;
    do_key('execute_query') ;
    -- Data from table_b will be populated in this block, based on the value of COLUMN_1 obtained
    -- from TABLE_A.
    -- Example: If the value of COLUMN_1 is 10, then all the matching records from TABLE_B, which
    -- are inserted with value 10 in TABLE_B.COLUMN_1 will be fetched and shown here.
    if user_choice = 'YES' then
    commit ;
    else
    rollback ;
    end if ;
    Statements in calling forms:
    There are two calling forms having following statements and it is going to call the above said called form.
    CALLING FORM 1
    Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...; Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    CALLING FORM 2:
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...;
    insert into table_b ...;
    Our understanding:
    Assume that both the forms are running from two different machines/instances, issuing commit at the same time. In this case, forms will start executing the statements written in ON-INSERT trigger, the moment POST command is executed. Though the commit is issued at the same time, according to oracle, only one of the request will be taken for processing first. Assume that calling form 1 is getting processed first.
    So, it fetches the value available in COLUMN_1 of TABLE_A and locks the row from further select, update, etc. as SELECT...FOR UPDATE command is used (note that NOWAIT is not given, hence the lock will be released only when COMMIT or ROLLBACK happens) and proceed executing further INSERT statements. Because of the lock provided by the SELECT...FOR UPDATE command, the statements in calling form 2 will wait for the resource.
    After executing the INSERT statements, the FORM_CHILD is called. The rows inserted in to TABLE_A will be queried and shown. The database changes will be committed when user closes the window (as COMMIT is issued in its WHEN-WINDOW-CLOSED trigger). Then the SELECT...FOR UPDATE lock will be released and calling form 2's statements will be executed.
    Actual happenings or Mis-behavior:
    Calling form 2 starts executing INSERT statements instead of waiting for SELECT...FOR UPDATE lock. Also, the value selected from TABLE_A.COLUMN_1 is same in both the calling forms, which is wrong.
    The rows inserted into TABLE_B are having similar COLUMN_1 values in calling form 2 and they are fetched and shown in the called form FORM_CHILD.
    Note that in calling form 2 also POST only is issued, but the changes posted there are accessible in calling form 1 also, which is wrong.
    Kindly suggest us as to how to fix above problem. It will be much use, if you can send us the information regarding the behavior of Oracle Forms POST built-in also.
    Our mail ID: [email protected]
    Thanks a lot in advance.

    You have several problems:
    1. On-Insert will ONLY run if you have created a new record in a base-table block. If you haven't done that, then the POST command will not cause it to run.
    2. Select for update without a "no wait" will lock records for the first form, but when the second form tries this, it will hit the ORA-00054 exception, and will NOT wait. The only way you could make it wait is to issue an UPDATE sql command, which is not such a good way to go.
    All POST does is issues SQL insert or update commands for any changes the user has made to records in a form's base-table blocks, without following with a Commit command.
    Also understand that Commit is the same as Commit_Form, and Rollback is the same as Clear_Form. You should read up on these in the Forms help topics.

  • Problem with table formatting

    I'm having a lot of problems with tables not reflecting their formatting when I open them in a browser. I've tried opening in Safari, Firefox & Camino with the same results. For example, a row with the following html content has a much larger height & aligns the text to the top when opened in a browser:
    <tr>
              <td height="15" colspan="3" valign="middle"><h6 align="center">Summer 2009</h6>
              </td>
            </tr>
    If it matters, this is a row in a table nested in another table. Here's the code down to the row in question (all tags are closed properly in the remaining code):
    <table width="600" border="2" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top"><img src="images/events.jpg" width="250" height="35"></td>
        </tr>
        <tr>
          <td align="left" valign="top">
          <table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
            <tr>
              <td height="15" colspan="3" valign="middle"><h6 align="center">Summer 2009</h6>
              </td>
            </tr>
    I am using a style sheet for text. Here's the code for "h6" if that matters:
    h6 {
    font-family: Verdana, Geneva, Arial;
    font-size: 14px;
    font-weight: bold;
    color: #660099;
    Any ideas is appreciated. This is driving me nuts. Spacing and alignment sometimes work and sometimes don't work. Dreamweaver is supposed to make such things easier!
    Kevin

    Header tags are usually used round a bit of text, not parts of a table, and if you don't specify the margins on them, can force different amounts of space below in different browsers. Try making the bottom margin on h6 zero, and confine it to text within a cell.
    Also, if you can upload your page somewhere and let us have the url it will be easier to troubleshoot.

  • Problem with tables -- need help!

    I am having problems with table formatting, when using
    Preformatted text. The tables look fine in the WYSIWYG editor, but
    have lots of extra space above and below the text when looking at
    the output files.
    I will attach the code from one of the HTML files from my
    project, so you can see what I'm talking about.
    Thanks.

    Well, if you're talking about the single-celled table with
    the line:
    <p class=Preformatted>[assembly:
    Ace.AceAssembly]</p>
    </pre>
    ... you can eliminate the <P> tags. that will give you
    one line less. Otherwise, your remaining space is the result of the
    <PRE> tag. It, like the <XMP> tag, gives it one line of
    space beneath as well.
    Your alternative beyond that would be to, when needed, wrap
    up the script in Javascript. That line, for instance, wouldn't need
    it.

  • What could be the problem with table REGUH

    Hi exprts
    i developed a report . its wrking ok in developemt system
    but in Quality system ,
    the below query is taking more time.
    in quality even  i have taken slection criteria which is very less than devlopment selection.
    please tell me the below query is performance wise not good or
    is there any problem with table REGUH in quality system?
      IF NOT ( t_bsak_aux[] IS INITIAL ).
        SELECT laufd laufi xvorl zbukr lifnr rwbtr kunnr empfg"
               vblnr ausfd rzawe
          FROM reguh
          INTO TABLE t_reguh
          FOR ALL ENTRIES IN t_bsak_aux
          WHERE laufd <> space
            AND laufi <> space
            AND zbukr = t_bsak_aux-bukrs
            AND lifnr = t_bsak_aux-lifnr
            AND vblnr = t_bsak_aux-augbl.
    thanks in advance
    regards
    neeru

    Hi,
    Using SPACE against the keys (LAUFI, LAUFD - specifically LAUFD) will most likely return no results. LAUFD, being one of the keys and the date which the program is supposed to run (considering that this is settlement data - it has already run) - implies that this field will be populated.  Putting " = SPACE" in your where clause is saying that you want to find records from the table where those fields are not populated.  That is fine for LAUFI, considering it is the indicator for a proposal only. In my requirement, my client did not want to see proposals but only real payment runs - therefore, LAUFI = SPACE is correct. 
    The reason you are having poor performance while selecting form this table is because it is a cluster table like bseg.  This thread explains a little bit of why cluster tables are a performance nightmare when trying to select - although it is about bseg, you will get the idea:
    http://blogs.ittoolbox.com/sap/db2/archives/select-from-bsegrfblg-performance-problem-14247
    I'm trying to find an alternative to get bank account information regarding payments - I will post a reply if I am lucky to find one! 
    Good luck

  • Problem with table MBEWH

    Hello SAP experts , im having a little problem with table MBEWH because the data i whant to extract isnt the correct one, i saw that this table stores all the prices for the materials and it groups them by year and by month but when i check to see what was the price for a specific material the price i had on that time periord inst the same as the one on the system, also i manage my material with baches and when i check to  see if that batch was in that period of time it isnt so im really confused as to how the system saves the historical data on this table, thank you in advanced.
    kind regards

    read OSS note 193554 , it explains everything

  • Problem with Table control lines

    Hi Friends,
    This is the problem with table control lines:
    I have screen with table control and I would like change the table control lines dynamicaly.
    Exp:
    In my PBO the Internal table which I am using to loop the TC is havig 7 records and its displayed with 7 records, now I have added one more record into my ITAB and now ITAB is having 8 records, when I am looping this ITAB with TC its taking the TC lines 7 only.
    here is the code:
    Initial values in gt_scr400 = 8
    Initial values in tc_scr400 = 8
    Now added one more recor into gt_scr400 , now gt_scr400  = 9.
      LOOP AT   gt_scr400
           INTO wa_scr400
           WITH CONTROL tc_scr400
           CURSOR tc_scr400-current_line.
      ENDLOOP.
    I have used this logic :
      DESCRIBE TABLE gt_scr400 LINES g_rec_300 .
      tc_scr300-lines = g_rec_300.
    but its not modifying the lines in my table control.
    How to change the TC lines based on ITAB total records.
    Thanks,
    Sridhar

    there is a field in TableViewName-xxx
    don't remember the exact field name for (total no of records)
    you can check it in debug.  when you add records in Internal table, u need to modify this field which is set at the first time when table control is populated.

  • Bex analyzer - internal error problem with table c_t_variable

    HI All,
         When ever I try to refresh a query in Bex-Analyzer ,Iam getting "internal error problem with table c_t_variable".
         Please advise
    Edited by: Aparna Duvvuri on Jan 13, 2010 10:53 AM

    Hi Aparna,
    try to open the query in RSRT and debug the query.the error is due to some  customer exit variable so try to debug the code for the variable and rectify it.
    Thanks,
    Ashok

  • Error "DATABASE PROBLEMS WITH TABLE MC11VA0HDRSETUP"

    Hi Friends,
    I got the following message when am trying to delete the setup tables.
    " Error DATABASE PROBLEMS WITH TABLE MC11VA0HDRSETUP"
    Am trying to delete the setup tables for application '11', but it gives me the above error. I have gone throug similar threads but it did not solve my issue.
    Please can anyone provide a solution.
    system detials:
    R/3 release    - 4.6c
    PI                 - 2004_1_46c
    SAP_BW      - 30B
    PI_BASIS     - 2003_1_620
    Any information will be appreciated
    Thanks,
    VBR

    Hi Kishor,
    Thanks for your reply.
    I have gone through that SAP Note 456102 and it was not of much help for our issue because we are ahead of PI that is mentioned in the note.
    Can you send your email id so that i can forward the error screenshots.
    Regards,
    VBR

  • Problems with table TEVEN

    Hi experts,
    After doing the upgrade system from 4.7 to 6.0 we have problems with table Teven. Trying executing RPTIME00 when the instruction update (table teven) is executed the program stay updating and never finished
    Does anybody know why that happens?
    Thanks a lot,
    Regards,
    Rebeca

    Did you update your database statistics after the ugprade?
    Try to catch an SQL Trace for the statement using ST05.
    Markus

  • I having problem with the answer  question for the App Store. And I forgot the answer

    I having problem with the answer  question for the App Store. And I forgot the answer

    Pleae call 1800MYAPPLE ask to speak to account security

  • Why has my 3G stopped working on my iphone? It is enabled, and I never had problems with it before, but for about 2 months now it has refused to work and as a result I can't send any attachments such as photos or videos via text.

    Why has my 3G stopped working on my iphone? It is enabled, and I never had problems with it before, but for about 2 months now it has refused to work and as a result I can't send any attachments such as photos or videos via text.

    Cellular data is a feature from your phone carrier.  Have you contacted them to resolve your issue.

  • I am having major problems with the latest update for my itunes!

    I am having problems with the latest update for itunes, it says 'itunes has an invalid signature'. I have completely uninstalled itunes but now it wont download at all. Have tried downloading it 4 times tonight already. Anyone know how to get it to download? Or what to do?

    I am having problems with the latest update for itunes, it says 'itunes has an invalid signature'.
    That suggests that the installer is getting damaged during the download.
    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • RSAU461, problem with activating update rules for cube 0csrv_c01

    Hello,
    I have added new fields to data source 0CRM_SRV_PROCESS_H, then changed transfer rules, added characteristics to ODS 0crm_proh, and reactivated update rules 80crm_proh. But now I have problem with second update rules for this cube named 80crm_cnfh. It is not active and all fields in it have red status, error RSAU461, and I cannot activate it.
    What I should do? Should I change somehow that second source for data to my cube (change infosource, ods, rule?)
    Regards
    Radek

    hi
    As said by the Mti u have just changed the info objects in the ods and u need to map them with the specific info objects from the ods.
    double click on the Update rules of the cube and go to the characteristic tab there map the newly added info objects with the IO in the ods.
    Khaja

  • Problemas with file "ns_emails.xml" for SMTP EXCHANGE

    Hi,
    I have problems with my ns_emails configuration for a SMTP EXCHANGE Mail Server.
    I configured Outlook with this parameters and works: Autenthication: yes, SSL: yes, port: 25, host: gmail.smtp.com.
    In my BPEL process is a right msg, but the email doesn`t arrive:
    <2008-01-27 19:19:51,781> <INFO> <default.collaxa.cube.services> <Utils::initNotificationMode> Notification via voice, fax, SMS, IM or pager will be sent. Emails will be sent with the current settings. If you would like to enable them, please configure accounts in ns_iaswconfig.xml and then set the NotificationMode attribute in ns_emails.xml to either NONE, EMAIL or ALL.
    Please, ¿do you see something wrong with this file?
    <EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
    EmailMimeCharset=""
    NotificationMode="EMAIL">
    <EmailAccount>
    <Name>Default</Name>
    <GeneralSettings>
    <FromName>Laura</FromName>
    <FromAddress>[email protected]</FromAddress>
    </GeneralSettings>
    <OutgoingServerSettings>
    <SMTPHost>smtp.gmail.com</SMTPHost>
    <SMTPPort>25</SMTPPort>
    <AuthenticationRequired>true</AuthenticationRequired>
    <UseSSL>true</User>
    <UserName>[email protected]</UserName>
    <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService">mypass</Password>
    </OutgoingServerSettings>
    </EmailAccount>
    </EmailAccounts>
    Thanks,
    Laura

    Hi,
    I know about domain.log file. In my first post, I put the message that I get.
    The problema is with the SMTP Exchange MS Server.
    I tried with a Local Mail Server with this parametes and its right.
    <GeneralSettings>
    <FromName>Laura Garcia</FromName>
    <FromAddress>testuser@lgrico-port</FromAddress>
    </GeneralSettings>
    <OutgoingServerSettings>
    <SMTPHost>lgrico-port</SMTPHost>
    <SMTPPort>25</SMTPPort>
    <UserName>testuser@lgrico-port</UserName>
    <Password>laura</Password>
    </OutgoingServerSettings>
    But with this configuration its wrong:
    <OutgoingServerSettings>
    <SMTPHost>smtp.gmail.com</SMTPHost>
    <SMTPPort>25</SMTPPort>
    <AuthenticationRequired>true</AuthenticationRequired>
    <UseSSL>true</UseSSL>
    <UserName>[email protected]</UserName>
    <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService">pass</Password>
    </OutgoingServerSettings>
    My company has the same kind of mail server than gmail, so I,m trying to configure this first.
    This is domain.log and it`s right, I can´t see where is the problem.
    <2008-01-29 09:26:05,006> <INFO> <default.collaxa.cube.services> <Utils::initNotificationMode> Notification via voice, fax, SMS, IM or pager will be sent. Emails will be sent with the current settings. If you would like to enable them, please configure accounts in ns_iaswconfig.xml and then set the NotificationMode attribute in ns_emails.xml to either NONE, EMAIL or ALL.
    <2008-01-29 09:26:05,053> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.QueueConnectionPool::QueueConnectionPool> Creating connection pool for java:comp/env/jms/Queue/NotificationSenderQueueConnectionFactory initial size 20
    <2008-01-29 09:26:05,053> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.QueueConnectionPool::QueueConnectionPool> Fetched a queue connection from pool java:comp/env/jms/Queue/NotificationSenderQueueConnectionFactory, available connections=19
    <2008-01-29 09:26:05,053> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Start of send(type,caller,message) type = email caller = BPEL
    <2008-01-29 09:26:05,053> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Notification ID 50d528357d42a957:-4d67d6df:117c49fc103:-7fcf
    <2008-01-29 09:26:05,053> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Start Persisting notification in database
    <2008-01-29 09:26:05,100> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> End Persisting notification in database
    <2008-01-29 09:26:05,100> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Start of send(type,caller,message)
    <2008-01-29 09:26:05,100> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.QueueConnectionPool::QueueConnectionPool> Released queue connection to pool java:comp/env/jms/Queue/NotificationSenderQueueConnectionFactory, available connections=20
    Thanks for your answers,
    Laura

Maybe you are looking for

  • Error while querying the external tables in 9i

    i am working on a project on Oracle 9iR2 on Linux AS 3.0, i am in urgent need to port my data in text files for using in the DB I have created an external table using the following script. While executing a query it gives the following error. Pls Hlp

  • Load youtube video in a movieclip

    hello all, i m trying to load youtube videos in my flash8 application.i m using this code:-- System.security.allowDomain(" http://www.youtube.com") System.security.loadPolicyFile(" http://www.youtube.com/crossdomain.xml") this.createEmptyMovieClip("i

  • Problem in oracle form3.0(plz reply soon)

    i m getting following error in oracle form 3.0 after trying to generate executable corresponding to .inp thru form designer Error is as follows--> PL/SQL error 356 at line 18, column 6: 'BANKACC' must name a table to which the user has access SQL Sta

  • Can I put a class into a jsp??

    I want to put this class into a jsp.. and reference it when I need it... can i just dumped it into a jsp... or do I have to do anything specific to it... public class areaformat {      public synchronized static String replace(String str, char oldcha

  • Not trying to flood the board just need a quick answer (pic included)

    I just need to know how to get rid of this square and cross view. http://www.flickr.com/photos/77484495@N05/6944371483/in/photostream/ I was given an answer that didnt seem to work for me.  They told me it was "region of interest" but that doesnt see