Random Record + Update

Looking to create a random record repeat region where the
random records being pulled updates a hit count. i.e. a simple
banner rotator that counts how many times it's displayed. not all
banners being rotated are in one folder... they are simply accounts
designated as being featured. I tried the order by rand() limit
5... error. changed to just rand() and that worked... but how do I
update a file based on that?

darrel wrote:
>> i tried the code you provided, the 2 question
marks... but that didn't seem
>> to do it either. anyone else have any ideas on how
to update a hit counter
>> based on the random record recordset?
>
> Instead of being a smart-***, how about actually either
a) quoting the
> original question or b) repeating the question.
>
> Anyone that's going to be of any help to you uses the
newsgroup interface,
> not the crappy web forum, so when you reply to a
question that's several
> weeks/months old, we don't see the original post.
>
> So, as such, all we saw was your silly question mark.
I use a newsreader and saw the entire thread as if it was a
new one.
There was 3 days between the original posts and his question
mark. Maybe
a question mark wasn't the right way to get more attention to
the post...
Steve

Similar Messages

  • Equipment master record updation in Asset master record

    Dear Friends,
    I have a query with regard to Equipment master record updation in asset master record. Here we have created equipment in Plant maintenance module and we have created asset in AS01 tcode. When we give the asset number to PM module guys, they can easily update the asset number in their equipment master by changing the equipment master record.
    But when we enter the same in asset master record in 3rd tab allocations tab, initially it is accepting the equipment details like equipment number, category, object and tech description, but the same is not available after saving.
    Please let me know whether I have to do any customization in asset settings inorder to get the equipment number populated in asset master record.
    Thanks,
    Dwarak.

    Hi,
    Thanks a lot for your reply.
    I did both these customization, but still it is not working. Any other customization to be done? Please let me know.
    And also in asset master record in allocations tab, do we need to select sync and workflow checkbox?
    Thanks
    Dwarak.

  • Conditionally disabling record updation after query

    Dear members
    I've a single record block and I wanna conditionaly disable records updation after query has fetched data. Problem is that if I disable the record updation in Post-Query trigger then it checks the condition for the very first fetched record and it the condition is true, then Updation is disabled for all the fetched records, even if the next records dont meet the condition. I'm using forms-10g. Can u give a better solution??? thanx.

    you have to use SET_ITEM_INSTANCE_PROPERTY to modify only one record:
    BEGIN
        IF ... <your_condition> THEN
            SET_ITEM_INSTANCE_PROPERTY('YOUR_BLOCK.YOUR_ITEM1', UPDATE_ALLOWED, PROPERTY_FALSE);
        ELSE
            SET_ITEM_INSTANCE_PROPERTY('YOUR_BLOCK.YOUR_ITEM1', UPDATE_ALLOWED, PROPERTY_TRUE);
        END IF;
    END;

  • When I check for software updates only itunes and random other updates show up but not security updates or safari update. When i check installed updates I realized my last security update was 2011-004 and I still have safari 5.0.6. Can anyone help me?

    When I check for software updates only itunes and random other updates show up but not security updates or safari update. When i check installed updates I realized my last security update was 2011-004 and I still have safari 5.0.6. Can anyone help me?

    Don't panic. OS X 10.5.8 is the most popular PowerPC OS out there. People run it everyday without security breaches, including myself. It isn't Windows!
    If you're really that worried, I highly recommend Sophos Anti-Virus for Mac Home Edition. Supports PowerPC & Intel and Mac OS X 10.4-10.7.
    http://www.sophos.com/en-us/products/free-tools/sophos-antivirus-for-mac-home-ed ition/system-requirements.aspx
    Direct download: http://downloads.sophos.com/home-edition/savosx_73_he.dmg

  • How can I select the random records in u201Cstep loopu201D.

    Hi, Experts,
    I am using step loop to display the data on screen now I want to select the random records from this step loop display. Like 1st 3rd or 5th record, is there any way to select the records,
    like I did in Table control there was a filed in internal table named marked char length 1, I gave this field name in u201Cw/ SelColumnu201D it fill that field with u2018Xu2019 from where I can get the info about the selected records, in this way I can easily perform the operation on that internal table with the help of that marked field.
    Is there any way to select the records in step loop too ?
    Kind Regards,
    Faisal

    thanks for replay shwetali,
    but i just gave you example of random records with 1st 3rd and 5th my goal is not select only these records. i want to select the random mean any records from the step loop display.
    like we can select from the table control. and when select any record it place 'X' in the given internal table field.
    Thanks and kind Regards,
    Faisal

  • PO without Info record Updation

    Dear All,
    I hope you all are fine and this is my first message to this forum.
    We have a client specific requirement and in that client wants PO without Info Record updation. Info record will be there but for Material and Vendor only not for Price.
    The situation is when we create a PO, the Price will not be pick up from Info Record conditions and from last PO Price.Means we have to manually enter the price and the info record will not be updated for price and cleint's other requirement is  in the info record Order price history is not to be updated when any PO is created.
    Please let me know the steps if anyone works on this issue.
    Havea good day
    Regards
    Lovkesh

    Hi Lovkesh,
    First of all dont create a info record manually.
    Just go a PO with inforecord indicator turned on.
    this will make a info record to be created automatically by the system when u post the PO.
    this inforecord will be with or w/o plant depending on the setting u specify in customizing under define condition control at plant level in SPRO.
    then under customizing for buyer values select not to copy from the last purchasing document.
    info record gets updated in 2 ways normally 1> from previous PO document 2> from conditions entered manually or if the info record update was turned on in any of the purchasing documents.
    after blocking these 2 ways info record will not get updated.
    also make sure in ur case for the material and vendor combination there exists any quotation or agreement orcontractbecause inforecord gets updated automatically if it is turned on(info update indicator) in these purchasing documents also----if  any of these exists then select no update of inforecord in all of them.
    reply me to get updated
    raja.

  • Info record update check box in Po

    Hi,
    We are working in ECC 6.0 envirnmoment and our project is trying to explore the functionality of PIR. The problem is I am not able to see info record update check box in the material data tab of the PO. I did not get any configuration in SPRO to make that field visible/ invisible. Please help me to for making this field visible at the time of PO creation in transcaction code me21n.

    HI Muttu,
    SPRO>>MM>>Purchasing >> Purchase order>>Define Screen Layout at Document Level>> NBF>> Administrative data,
    in that u can make display or optional or required entry
    Check once again in ur Purchase order it may be display mode in ur PO
    Regards
    Pramod

  • Select Random Records with Group By?

    Hi,
    I currently select random records by using this type of SQL:
    (SELECT *
    FROM ( SELECT *
    FROM ( SELECT *
    FROM TABLEA
    ORDER BY dbms_random.value
    WHERE ROWNUM <= 100
    Based on the following data, I now want to still pick out random records but I only want 1 record from the same ID and START_DATE but where the FLAG could be Y or N.
    So with grouping by ID and START_DATE, I need to still be able to choose the record if it has anything from 1 entry or 10 entries per ID and START_DATE.
    Could this be performed with a GROUP BY?
    ID START_DATE FLAG
    1 12/12/2005 Y
    1 12/12/2005 N
    1 12/12/2005 N
    1 30/12/2005 Y
    1 30/12/2005 N
    1 30/12/2005 N
    2 10/10/2005 Y
    2 07/07/2005 Y
    Thanks for any help.
    Daniel

    Try this [not tested]:
    SELECT *
         FROM
              (SELECT *
                   FROM
                   ( SELECT
                              ID
                             ,START_DATE
                             ,FLAG
                             ,ROW_NUMBER() OVER
                                  (PARTITION BY ID,START_DATE ORDER BY dbms_random.value) RN
                        FROM TABLEA
                   ORDER BY dbms_random.value
         WHERE RN = 1
              AND ROWNUM <= 100
         ;

  • Dynamic Table with Random Records

    What I am trying to do is select random records from a table
    and display them in a dynamic table with max columns set to 3 and
    the 4th record to be on a new row. Below is what I have right now
    and it works to randomly pick records but has no function to set
    columns in a table. If there is an easier way feel free to let me
    know. I have tried various ways to do this but none seem to work.
    <CFQUERY NAME="getItems" DATASOURCE="absi">
    SELECT catfit.*, modcats.*, prodmat.*, prod.* FROM catfit,
    modcats,
    prodmat, prod WHERE prodmat.prodid=catfit.prodid And
    catfit.catid=modcats.catid
    ORDER BY modl ASC </cfquery>
    <cfif getItems.recordCount>
    <cfset showNum = 3>
    <cfif showNum gt getItems.recordCount>
    <cfset showNum = getItems.recordCount>
    </cfif>
    <cfset itemList = "">
    <cfloop from="1" to="#getItems.recordCount#"
    index="i">
    <cfset itemList = ListAppend(itemList, i)>
    </cfloop>
    <cfset randomItems = "">
    <cfset itemCount = ListLen(itemList)>
    <cfloop from="1" to="#itemCount#" index="i">
    <cfset random = ListGetAt(itemList, RandRange(1,
    itemCount))>
    <cfset randomItems = ListAppend(randomItems, random)>
    <cfset itemList = ListDeleteAt(itemList,
    ListFind(itemList, random))>
    <cfset itemCount = ListLen(itemList)>
    </cfloop>
    <cfloop from="1" to="#showNum#" index="i">
    <cfoutput>
    <table width="205" border="0" align="left"
    cellpadding="0" cellspacing="0">
    <tr>
    <td width="235" height="116"> <div
    align="center"><img
    src="../Products/ProductPictures/#getitems.pic[ListGetAt(randomItems,
    i)]#" width="100"></div></td>
    </tr>
    <tr>
    <td
    class="ProdTitle">#getitems.brand[ListGetAt(randomItems,
    i)]# #getitems.modl[ListGetAt(randomItems, i)]#</td>
    </tr>
    <tr>
    <td
    class="paragraph">$#getitems.prc[ListGetAt(randomItems,
    i)]#</td>
    </tr>
    <tr>
    <td><A
    href="../Products/details.cfm?prodid=#getItems.prodid[ListGetAt(randomItems,
    i)]#" class="linkcontact">more
    info</a></td>
    </tr>
    <tr>
    <td> </td>
    </tr>
    </table>
    </cfoutput>
    </cfloop>
    </cfif>

    To start a new row after 3 records, do something like this.
    <table>
    <tr>
    <cfoutput query="something">
    <td>#data#<td>
    <cfif currentrow mod 3 is 0>
    </tr><tr>
    </cfoutput>
    </tr>
    </table>
    You should also know that your approach is very inefficient
    in that you are bringing in to cold fusion more data than you need.
    First of all you are selecting every field from 3 tables when you
    don't appear to be using all of them. Second, you are selecting
    every record and you only want to use 3. There are better ways out
    there, but they are db specific and you did not say what you are
    using.

  • Display Random Record

    Morning all
    Just a quick one.
    How do I display a random record in DW?
    I have a MySQL statement which is:
    SELECT * FROM
    tablename ORDER BY RAND() LIMIT 0,
    number of records to display
    The error message I get is:
    'Syntax error (missing operator) in query expression RAND()
    LIMIT 0'
    If I alter 'RAND()' to 'RND()', I still get the error. If I
    remove the '0' I still get the error.
    Any ideas how to make this work?
    I'm using Access BTW.
    Regards
    Martin

    Tell your SQL statement what to RAND - right now it doesn't
    know how to
    randomize it, by what field.
    "Pantyboy" <[email protected]> wrote in
    message
    news:ef0and$r7g$[email protected]..
    > Morning all
    >
    > Just a quick one.
    >
    > How do I display a random record in DW?
    >
    > I have a MySQL statement which is:
    >
    > SELECT * FROM
    tablename ORDER BY RAND() LIMIT 0,
    number of
    > records to
    > display
    >
    > The error message I get is:
    >
    > 'Syntax error (missing operator) in query expression
    RAND() LIMIT 0'
    >
    > If I alter 'RAND()' to 'RND()', I still get the error.
    If I remove the '0'
    > I
    > still get the error.
    >
    > Any ideas how to make this work?
    >
    > I'm using Access BTW.
    >
    > Regards
    >
    > Martin
    >

  • Where is the Record Update Form Wizard in DWCC?

    Trying to follow online help but it doesn't relate to DWCC.   A tutorial I found for CS6 suggests that it's in Insert > Data Objects > Update Record > Record Update Form Wizard but in DWCC there is no "Data Objects" option in the Insert menu.
    By the way, I'm looking for the wizard not the straight Update behaviour which I'm aware is in the Server Behaviours panel.
    Thank you.
    NJ
    EDIT:  Just spoke to Adobe "support" by chat about this and they were absolutely useless. The directed me to the article that I've highlighted above as being for CS6, which isn't helpful because "Data Objects" isn't in the Insert menu in DWCC, and when I pointed that out they gave me this link to try:  http://www.adobe.com/devnet/
    Seriously?  Is this the best I can hope for from Adobe support?  It was clear that the operative was just doing Google searches for the answers as opposed to actually knowing the software that they represent.  Really disappointing support.

    Hi Jon,
    "Database functionality was removed from DWCC."  - I use database functionality a lot so this is a real let down.  Why has it been removed when it seems so integral to a lot of modern websites and web applications?
    I've got the Legacy Extension, or Depracated_ServersBehaviours panel extension, but that does not bring back the Record Update Form Wizard.
    Tutorials as far as CS6 reference the Record Update Form Wizard but I'm guessing that it has just been completely dropped in DWCC - not that anyone from Adobe know that one way or another.  The official "support" I received earlier was a complete joke (some guy doing Google searches whilst saying - "I'm just verifying your account").
    I'm quite handy with Google myself so maybe there's an opportunity for me to move into a career as an Adobe support technician.
    I'll have to find a third party extension then I guess.  Thanks for the advice.

  • Random Record Selection

    I have a page that I have a recordset on just calling the
    RecordID in the database. How would I have the page or recordset
    select a random record and put that recordID in say a session
    variable?
    Thanks

    MySQL:
    SELECT yourfield FROM yourtable WHERE ... ORDER BY rand()
    LIMIT 1
    MSSQL:
    SELECT TOP 1 yourfield FROM yourtable WHERE ... ORDER BY
    newid()
    MS Access:
    SELECT TOP 1 yourfield FROM yourtable WHERE ... ORDER BY
    RND(yourprimarykey) [warning: this may not be random through
    CF]
    HTH
    Tim Carley
    www.recfusion.com
    [email protected]

  • Random record return

    I have a DB of sites that I need to query and pull in 5
    records that are to be displayed in a random order.
    I can limit the records but I'm struggling with displaying
    them in a random order.
    Any ideas?

    We're using MySQL as the DB and to clarify I need to pull in
    5 random records in a random order.
    I've just been emailed the answer by a friend so I'llpost it
    up here.
    "SELECT *
    FROM tablename
    WHERE somefield='something'
    ORDER BY RAND() LIMIT 5"
    Seems to work fine to me.

  • Random record for ASP

    I would like to have a section on my ASP page to generate a
    random record that pulls from my database. So that each time the
    page is opened/refreshed, a different record is displayed.
    Any ideas?

    "Biggest Dave" <[email protected]> wrote in
    message
    news:e2nn6n$83e$[email protected]..
    >I would like to have a section on my ASP page to generate
    a random record
    >that pulls from my database. So that each time the page
    is
    >opened/refreshed, a different record is displayed.
    >
    > Any ideas?
    Yes.
    Of course, since I don't know what database you're using, any
    or all of
    those ideas could be useless.

  • Display random records

    Hi guys,
    Is there an easy way to display a random record from an XML
    file? Current code:
    HEAD
    <script type="text/javascript">
    <!--
    var dsPower = new Spry.Data.XMLDataSet("broadband.xml",
    "software/product");
    //-->
    </script>
    BODY
    <div spry:region="dsPower">{product_name}</div>
    What i want to happen is when the page is loaded (and/or
    reloaded) i want the {product_name} to randomly display any one of
    my ten product names. I presume it requires use of {ds_RowID} and
    some JavaScript, but am unsure of where to begin.
    Thanks in advance for any help.

    nevermind people, i figured it out already. please close this topic.

Maybe you are looking for

  • Using imovie exporting files to dvd

    hi,i have recorded 1h video clip.transfer to imovie ,when i done few corection i want to transfer to dvd but it comes to 10gb.please can you tell me how i can squeeze 1h clip from 10gb to 4.7gb . Thank you iMac

  • Separating Oracle database according to Company Code

    Hi, I am looking for a solution for my company which has 8 plants, 3 of them are shut down and now 5 plants are active. So inorder to reduce the size of the database(total size is 1TB, with the DR setup the cost seems to be high to maintain!) is ther

  • How to create a Doc/Literal WebService that supports SOAP attachment?

    Hi, I need a sample that works with OC4J to provide a doc/literal WS which supports attachment for input/output. How to create that with JDeveloper? Thanks!

  • Does anyone at BT care that I have been without a ...

    I reported a fault on my landline on 30th October. A appointment was booked and an engineer attended on 5th November. He tested the line, replaced all of the wiring from our primary socket to the pole outside our property but when it was connected sa

  • WI FI NOT WORKING, WI FI NOT WORKING

    plz help me wi fi not working it is off and i can't turrned on it is become gray color what can i do to turrned on