Record set order change

I have a record set that has the following MYSql statement
SELECT *
FROM Tickets p JOIN Customer c ON p.Cust_Num = c.Cust_Num
WHERE p.Location_Code = '" & strloc3 &"'
ORDER BY Ticket_No DESC
I have a repeat region that show 10 rows of data.
I have on my form some tabs labeled ticket No date make etc (
these are all
fields in the table)
I need the following to happen when a client clicks on say
the Date radio
button
SELECT *
FROM Tickets p JOIN Customer c ON p.Cust_Num = c.Cust_Num
WHERE p.Location_Code = '" & strloc3 &"'
ORDER BY Date DESC
How do I get the action on a radio button click.
How do I then change the MYSql statement in the record set
and run the
statement.
The client should then see all records sorted by date...
Cheers
SteveW

Are you sure you want to sort this on the database? Depending
on how many rows are returned and query performance, you might want
to just use jscript/dom to sort the rows.

Similar Messages

  • Nested sort order for record set?

    I've set up a record set using the Dreamweaver server behaviour wizard, and have sorted the records (a list of names) alphabetically.  However I need to do what I would describe as a nested sort order:  I want to sort firstly by a flag, and then in  alphabetical orde by name.
    Here's my code:
    $query_artists = "SELECT artist_id, artist_name, `new` FROM artists WHERE setting_flag = 'S' ORDER BY artist_name ASC";
    So  I want to order by a field called 'new' (and alphabetically for all  records with the flag), and then the remainder alphabetically.
    Is this possible?
    Thanks

    That's great, thankyou so much.  I thought it would be something simple but hadn;t been able to find it by googling it.  Working perfectly.
    SW

  • About production order change historic records

    The users want to know about production order change historic records.how can I get it, please do me a favour. Thanks.

    Hello ,
    Look into:
    SAP NOTE: 1407961 and
    History of production order changes
    Please search the forum first for such questions.
    - Pushkar
    Edited by: Pushkar Patil on Aug 6, 2010 9:56 AM

  • BDC Program to Set Reason for Rejection in VA02 in Sales Order Change

    Hi i have a requirement i have to set "reason for rejection" in random line items of Change mode of sales order VA02.
    I have to develope BDC for this task and i have the list of all open line items which displays in VA05, can any of them can guide me how to develop BDC which will randomly select line items and set reason for rejection in VA02 Sales Order Change transaction.
    With Regards,
    S.Saravanan

    Hi Saravanan,
    As mentioned in the previous reply, you can use the FM:SD_SALESDOCUMENT_CHANGE and set the reason code for the line item like for eg:  move '03' to IT_INPUT-REASON_REJ. and also set 'U' for update flag in the header structure,
    move 'U' to HEAD_INPUT_INX-UPDATEFLAG
    this will be best and easy method.
    for this, FM,you need to pass the below parameters:
    CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
    EXPORTING    
       salesdocument                   = old_order
           order_header_in             = head_input
            order_header_inx           = head_input_inx
          TABLES
            return                      = return
           item_in                     = it_input
           item_inx                    = ii_input_inx
           schedule_in                 = schedule_input
           schedule_inx                = schedule_inputx
    declare all these structure and internal tables as per documentation of the FM.
    hope this helps.let me know if you need more information.
    Thanks,
    Srini.

  • I am trying to set my background setting to change when ever I log in, I clicked on both 'change picture' and 'random order' boxes as my settings, but when ever I log in it has the same background as before. Does any body know how to fix this?

    am trying to set my background setting to change when ever I log in, I clicked on both 'change picture' and 'random order' boxes as my settings, but when ever I log in it has the same background as before. Does any body know how to fix this?

    You have to enter the Apple ID and password. You are running into the Activation Lock
    iCloud: Find My iPhone Activation Lock in iOS 7
    Is there a way to find my Apple ID Name if I can't remember it?
    Yes. Visit My Apple ID and click Find your Apple ID. See Finding your Apple ID if you'd like more information.
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.

  • Help required in OCM-Order change management

    Hi All,
    I have to implement the Order change managment. I did few setting which are required and than i created ECR using release key. but using OCM it tells me to first make the changes in MATERIAL BOM than using transaction COCM i can make the changes in required production order.
    But my requirement is i want to change the Production BOM or Production routing directly without touching Material BOM .
    As sometime it happens only 1 or 2 Order BOM s are need to be changed only not the Material bom. So i want to track the Changes made in Order using OCM.
    What is the solution that i can change the Production Bom OR Production Routing directly using OCM and also how can i make the changes in Sales Order.
    Pls do the needful.
    Thanks
    Ravi Khurana

    Using Order Change Management (change management for production orders), it is possible to include existing procurement elements (production orders, planned orders, purchase orders) that are also affected by a change, in the change process.
    The change process in OCM is based on Initiating Objects. These initiating object records refer to changes in sales orders or in master data, which, in turn, necessitate changes to production orders.
    Thus, it is not possible to change the order directly using OCM.

  • Purchase order changes through EDI

    Hi All,
    Is it possible to transmit only changes made againt each purchase order through EDI. If so how that can be done.
    For example if the quanity of purchase order changed then only changed quanity field should be transmitted through EDI.
    Thanks & Regards,
    N. Laxman

    Hi Laxman.
    What do you have on WE20?
    Usually you have two records. One to send the PO when you create and another one for changes;
    Partner role | Message Type | Message Function
    OA              | ORDERS           | 850
    OA              | ORDCHG          | 850
    For the message type ORDCHG in the config you have to set the message control as follow
    Application | Message type | Process code | Change
    EF               | NEU                 | ME11              | checked
    Hope this helps.
    Regards
    Eduardo

  • How to set a change pointer for a perticular table?

    Hi,
    Please let me know how to set a change pointer for a perticular table.

    what do you mean by 'change pointer'? normally this idiom is used for sending ÍDOCs from one system/client/org-unit to another ...
    do you generally want to record changes to a specific table? then set parameter rec/client using RZ10 for your instance profiles and restart the instances in order for the parameter to take effect.
    set the table to 'record all changes' using SE11.
    you might re-consider if the table has a lot of  data and is accessed very often for performance-resons.
    change protocols can be evaluated using tx, SCU3.

  • How to make this work selecting advanced record set dreamweaver complains and crashes all the time

    Hi There
    I have met a person who does php and sql work but not with dreamweaver. The code I have works but dreamweaver shows me an error with my record sets and it crash all the time.
    <?php require_once('../Connections/datexdatabase.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if($_GET['pageID']==''){
        $pageId = 1;
    }else{
        $pageId = $_GET['pageID'];
    mysql_select_db($database_datexdatabase, $datexdatabase);
    $query_rsIndex = "SELECT pages.title, pages.meta_keywords, pages.meta_description, content.header, content.`description`
    FROM pages INNER JOIN content ON pages.id = content.page_id WHERE pages.id = ".$pageId." ORDER BY content.order";
    $rsIndex = mysql_query($query_rsIndex, $datexdatabase) or die(mysql_error());
    $row_rsIndex = mysql_fetch_assoc($rsIndex);
    $totalRows_rsIndex = mysql_num_rows($rsIndex);
    ?>
    <?php do { ?>
            <?php if($row_rsIndex['header'] != 'Introduction'){ ?>
            <b><?php echo $row_rsIndex['header']; ?></b>
            <?php } ?>
            <p><?php echo$row_rsIndex['description']; ?></p>
            <?php } while ($row_rsIndex = mysql_fetch_assoc($rsIndex)); ?>
    <?php
    mysql_free_result($rsIndex);
    ?>
    I am able to join the tables in the advanced recordset but i am getting confused with "" FROM pages INNER JOIN content ON pages.id = content.page_id WHERE pages.id = ".$pageId." ORDER BY content.order";"
    mysql_select_db($database_datexdatabase, $datexdatabase);
    $query_rsIndex = "SELECT pages.title, pages.meta_keywords, pages.meta_description, content.header, content.`description`
    FROM pages INNER JOIN content ON pages.id = content.page_id WHERE pages.id = ".$pageId." ORDER BY content.order";
    My question is how can I use dreamweaver with the advanced recordset with the pageID without dreamweaver crashing 20 times a day
    Regards

    My question is how can I use dreamweaver with the advanced recordset with the pageID without dreamweaver crashing 20 times a day
    Do you get any errors in Dreamweaver when it crashes?
    What version?
    What OS?
    Have you tried trashing recreating the user config folder ( http://kb2.adobe.com/cps/405/kb405604.html#main_user_config )?
    Have you tried trashing the preferences ( http://kb2.adobe.com/cps/839/cpsid_83912.html )?
    Has anything changed on the system recently (from program installs, to system / OS updates)?
    Have you tried creating a new user account on the system to verify there is no corruption in the current user's system data?

  • Comparing a record set

    I am trying to compare if a record set has been changed by a
    user during a forms session. The record set has over 70 columns.
    My solution is to query the record set in pre-update trigger and
    re-query the record in post-update trigger and compare for any
    change. In order to compare, I have to write over 70 IF statements.
    Is there a better way to do this?
    thanks in advance!

    May be that:
    loop
       v_name := :system.cursor_item;     
       v_r := name_in(v_name);     
       -- you check, you have name item and value
       exit when replace(v_name, 'BLOCK1.', '') = Get_Block_property('BLOCK', Last_Item);     
       next_item; 
    end loop;    

  • Sale Order changes View

    Dear Guru's
    Is there any T-Code for verifying Sale Order changes (Step wise), as in my company Invoices are generated with lot of changes which not matching with Sale Order conditions. So I would like to moniter the Sale Order conditions changes. Kindly help me out.
    Thanks in advance

    Hi
    Sales order changes can be seen in the report only if the changes are made by any user(userid). If your problem is with changes in pricing conditons...then before comparing the sales orders and invoices, I advise you to check the copy controls and the price type used in the copy controls. If the price type selected is to redetermine the pricing, then you should check the validity of the conditon records. Sometimes, the conditon records may be different during sales order creation and invoice creation.
    Thanks,
    Ravi

  • Sales Orders Change Log question

    Hi All,
    I am currently working on a project that involves querying SAP Database to get custom reports via web browser, I've made a lot of advances and most of the site is ready but I'm missing just one item that I hope you could help me.
    Thing is I am working with the Sales Order change log and the problem comes one a user deletes a row. If I go to the change log inside SAP and see the differences a new record will be shown saying that row X was deleted and
    if I go to the database (ADOC and ADO1 tables) I don't have a way to see wich row was deleted.
    My way of doing this is to check for the number of rows on the current state of the sales order and check the same on the previous instance of the SO and see if a line was deleted. Then I would have to check row by row between instances what rows are there and what row is missing and store that info. I think this kind of approach will definitively kill the server.
    I was wondering if some one can give me a hint about how to approach this problem. Does any body know how SAP works on this area?
    I'm working with SAP2005A and SQL Server 2005 Standard Edition.
    Any help is greatly appreciated.
    Thanks!
    Alejandro.-

    Hola Alejandro,
    Thanks for your answer, as I see it I'm doing exactly what you proposed but the problem comes with the following scenarios:
    a.- If I post a new SO with two lines I will have on the ADO1 table two records with the values 0 and 1 for each line respectively but if I delete the item on LineNum = 1 and then I add a new item, this last item will be also created with LineNum value = 1. This is not a complicated thing to do but the problem comes when the user is used to work with SOs with several items at detail level and is used to add and erase lines once in a while and as I see it it's very difficult for me to track those specific changes. There's also the fact that on the Log table a new instance is created every time the user hits the update button regardless if a modification was actually made or not. I mean I would know that a line was deleted or added but I would have to start comparing each field on each line of a sales order with it's previous instance to check what was actually added/deleted and I'm afraid that this may affect the server performance. I know that SAP does this without affecting to much the system resources and that is what I'm trying to find.
    I forgot the other scenario I was considering he he I will post again as soon as I remember it but I hope I'm explaining this ok (I'm not very good at explaining...) If not let me know and I'll try to explain again.
    I'm also working on trying to get another approach to see what comes up...
    Thanks for checking this thread, your answers are helpful.
    Regards.

  • Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • Record has been changed by some other user

    Hi All,
    i am working on a network when i make some update in my database through a form on first updation it works fine, while on second updation it gives me an error 'Record has been changed by some other user' wile no other user is currently working on the same form.
    Plz tell me what i can do.
    Wating 4 your reply.
    Thanks in Advance.

    You probably have a database trigger which changes the value of a column which is also part of your form.
    The solution depends on the version of Oracle forms and the database that you are using.
    Oracle forms 6 introduced a DML returning value (block level) which you can set to Yes so that the value(s) changed by the server will automatically be updated within the form. However, you must be running against an Oracle8 (or later) database for this to work.

  • Add a new field to Co02 ( production order change )

    Hello, I need to add a new field to the transaction Co02. I've found the following customer exit, but don't know which is the proper one. Maybe none of them can meet my requirement. Does anybody has any idea or experience?
    Exit name     Short text
    PPAPO002     Publication of APO Data in Transfer from APO to R/3
    PPAPO003     Production Order R/3->APO: Check if Operation is APO-Relev.
    PPAPO004     Planned Order Conversion from APO: New BOM Explosion?
    PPAPO005     Enh. of Relationships in Proc. Order during Transfer to APO
    PPAPO006     Influencing Initial Supply of Manufacturing Orders
    PPAPO007     Overriding Checkbox Fields for Production Order APO -> R/3
    PPAPO008     Override Order Type for Planned Order Conversion
    PPAPO009     Customer Exit for Addition of Components and Items
    PPAPO010     Filtering Components out of Quantity Propagation
    PPAPO011     Performance-Related Adjustment of Remaining Duration
    PPCO0001     Application development: PP orders
    PPCO0002     Check exit for setting delete mark / deletion indicator
    PPCO0003     Check exit for order changes from sales order
    PPCO0004     Sort and processing exit: Mass processing orders
    PPCO0005     Storage location/backflushing when order is created
    PPCO0006     Enhancement to specify defaults for fields in order header
    PPCO0007     Exit when saving production order
    PPCO0008     Enhancement in the adding and changing of components
    PPCO0009     Enhancement in goods movements for prod. process order
    PPCO0010     Enhancement in make-to-order production - Unit of measure
    PPCO0012     Production Order: Display/Change Order Header Data
    PPCO0013     Change priorities of selection crit. for batch determination
    PPCO0014     Select process orders for external relationships
    PPCO0015     Additional check for document links from BOMs
    PPCO0016     Additional check for document links from master data
    PPCO0017     Additional check for online processing of document links
    PPCO0018     Check for changes to production order header
    PPCO0019     Checks for changes to order operations
    PPCO0020     Process order: Display/change order header data
    PPCO0021     Release Control for Automatic Batch Determination
    PPCO0022     Determination of Production Memo
    PPCO0023     Checks changes to order components
    PPCP0001     P.Cost Planning: Additional Cost Elements for Person
    PPEACT01     Customer Fields at Mode D
    PPECMP01     Customer Fields: CMP Nodes
    PPECMP02     Customer Fields: CMP Variants
    PPEGEN01     General Engineering Node: Customer Fields
    PPERES01     Customer Fields at RES Node
    BTW, if this is impossible, can I rename a field (field name on the screen) of Co02 that I don't need, and add my own values to it?
    Thanks.
    Nuno

    Hi Nuno,
    how did you solve this problem?
    tks

Maybe you are looking for

  • Need a bapi r  fn module to update the batch classification in the bom

    hi, iam working a exit : exit_saplcoml_001.This exit is for material quantity calculation.the materials are currently classified in the material master under the classification tab.Ans due to this the classification becomes cross plant. To make the m

  • Documents & Data in the cloud?

    When checking the box for Documents & Data in the cloud, what does this store to the cloud? Whcih files can I synch this way? Thanks.

  • QuickTime movie in Pal to NTSC

    I have a PAL camcorder. I made an i movie in PAL and then edited it. I then converted it to QT in Pal. I then want to convert it to NTSC in JES. It doesn't seem to want to convert. ??? Perhaps I put something wrong into the slots. Could some one give

  • HT4101 My Apple camera kit no longer recognizes SD cards. I'm running iOS6.1.2.

    I have used the Apple camera kit with a previous verson of iOS and it worked fine, but since I upgraded to iOS 6.1.2 the pad no longer recognizes the SD reader or the USB connector. However, when I go to "settings","about" the hardware is listed. Is

  • Error : you are not assigned to a position

    Hi Seniors, I am getting below error though I have assigned proper position in R/3 and also I have linked this with communication info type 105 using PA30. I am not able to see my data in portal. Please help... Regards, Ritu