New Recordset Code in CS3?

I have some ASP (VBScript) pages where I use a "sort"
feature. The idea is
that when a user clicks on a column heading, this value
becomes a string in
the address bar. Then, I setup the recordset to ORDER BY
varsort (where
varsort = request.querystring("sort")).
In previous versions of DW this worked fine, but not with
CS3. The code for
the recordsets created with CS3 appears to be different. Why
would the new
code "break" my setup (it's not recognizing any sorts)?
Sort page with old DW:
http://www.presentationsdirect.com/Laminators/search_results.asp?lamtype=pouch
Sort page with new DW:
http://www.presentationsdirect.com/Laminators/Supplies/search_results_rolls.asp?width=25
Brandon
http://www.presentationsdirect.com

Thanks for the helpful info.
Brandon
"danilocelic AdobeCommunityExpert"
<[email protected]> wrote in
message news:f7ll5h$1u9$[email protected]..
> Nancy - Adobe Comm. Expert wrote:
>> The code for
>>> the recordsets created with CS3 appears to be
different. Why would the
>>> new code "break" my setup (it's not recognizing
any sorts)?
>>
>>
>> Recordset code was not updated in CS3, but rather in
8.02 to deter SQL
>> injection attacks. Quickly remake the recordset with
the new version and
>> you should be good to go.
>
> Nancy,
>
> Unfortunately, what the OP is asking for isn't possible
with the "new
> version" of recordset, as it assumes that all parameters
within the SQL
> are column value parameters, and dynamic SQL generation
is no longer
> supported. This has caused a number of folks )including
Tom Muck quite
> vociferously) to complain about the lack of versatility
of the new
> recordset code.
>
>
>
> Brandon, What you'll need to do is to hand edit the
recordset after you've
> applied it to the page. I've not tried this particular
use case recently,
> but it is possible that after editing that DW will no
longer recognize
> that the recordset is on the page.
>
> FWIW: You should never directly use a querystring
parameter in your code,
> you should always "clean" it first. IIRC The old style
of recordsets did a
> replace on the value replacing all single quotes with
doubled single
> quotes. A better way may be to have some code that
checks for the value of
> the querystring parameter and if it matches one of your
column you can
> sort on, then use a string of your own making to use
within the SQL.
>
>
> --
> Danilo Celic
> | Extending Knowledge Daily :
http://CommunityMX.com/
> | Adobe Community Expert

Similar Messages

  • Recordset paging in cs3

    I am trying to use the recordset paging button in dreamweaver it seems to load right
    but when I hit next it says 0-0 zero and is empty even though the first page says there is
    517 items to look at . I am not getting to the second page and beyond for some reason I cant figure out. Is this an issue with cs3 I have cs4 as well but use cs3 on my laptop. I can post the code if need be ...

    Thanks for the helpful info.
    Brandon
    "danilocelic AdobeCommunityExpert"
    <[email protected]> wrote in
    message news:f7ll5h$1u9$[email protected]..
    > Nancy - Adobe Comm. Expert wrote:
    >> The code for
    >>> the recordsets created with CS3 appears to be
    different. Why would the
    >>> new code "break" my setup (it's not recognizing
    any sorts)?
    >>
    >>
    >> Recordset code was not updated in CS3, but rather in
    8.02 to deter SQL
    >> injection attacks. Quickly remake the recordset with
    the new version and
    >> you should be good to go.
    >
    > Nancy,
    >
    > Unfortunately, what the OP is asking for isn't possible
    with the "new
    > version" of recordset, as it assumes that all parameters
    within the SQL
    > are column value parameters, and dynamic SQL generation
    is no longer
    > supported. This has caused a number of folks )including
    Tom Muck quite
    > vociferously) to complain about the lack of versatility
    of the new
    > recordset code.
    >
    >
    >
    > Brandon, What you'll need to do is to hand edit the
    recordset after you've
    > applied it to the page. I've not tried this particular
    use case recently,
    > but it is possible that after editing that DW will no
    longer recognize
    > that the recordset is on the page.
    >
    > FWIW: You should never directly use a querystring
    parameter in your code,
    > you should always "clean" it first. IIRC The old style
    of recordsets did a
    > replace on the value replacing all single quotes with
    doubled single
    > quotes. A better way may be to have some code that
    checks for the value of
    > the querystring parameter and if it matches one of your
    column you can
    > sort on, then use a string of your own making to use
    within the SQL.
    >
    >
    > --
    > Danilo Celic
    > | Extending Knowledge Daily :
    http://CommunityMX.com/
    > | Adobe Community Expert

  • Hard drive died.  Need to reinstall on new laptop with windows 7 64 bit system,  Need to get activation code for CS3 Web Premium.

    Hard drive died.  Cannot uninstall CS3 to remove copy registration. Need to reinstall on new laptop with windows 7 64 bit system,  Need to get activation code for CS3 Web Premium.

    Thank you Bob.
    Just to clarify - in terms of backing up one set of these, would that just be so I had it on disk and didn't need to re-download from Adobe if the installation got corrupted somehow?  Or do I need a backup for some other reason?
    Thanks

  • Viewing new template in dreamweaver cs3 reverst to front page ??

    When i save a new template in Dreamweaver CS3 and then try to preview in IExploer it asks me "do you wnat to open or save this file? when i select either it reverst to my old MS Front Page editor

    From their website:
    " Adobe Flash (version 8 or higher) is required to edit the
    FLA file.
    - Use the source codes at your own risk after downloading and
    flashmo.com is
    not responsible for any bugs or errors caused by
    ActionScripts."
    Do you own Flash? Are you familliar with action scripts? If
    not, then you
    probably want to start with a plain html template and learn
    how to code html
    and CSS. Flash sites look nice but they are not friendly for
    Search Engines
    or users who don't have flash player installed on their
    system.
    Here are some on-line tutorials to help you get started with
    html and CSS
    code:
    www.w3schools.com (free)
    www.Lynda.com (pay videos)
    Adobe help - "Getting Started"
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "jdbcmcbride" <[email protected]> wrote in
    message
    news:ftr2vf$i4q$[email protected]..
    > I am a first-time user of DreamWeaver and am currently
    learning how to
    build a
    > website with the Adobe HTML article that they have.
    However, I found a
    flash
    > template that I downloaded as it is exactly what I want
    to use for my
    website.
    > My problem is, I don't know how to make it work.
    >
    > The template is located at
    http://www.flashmo.com/home
    and it is the one
    on
    > page 5 called "037 Wooden". If anyone can tell me what
    to do to get this
    to be
    > my website, I would really appreciate it.
    >

  • New recordsets being added as a command

    All of a sudden, when adding a new recordset, Dreamweaver
    adds it as a
    command instead of regular recordset. It strips out the sql
    completely. Here
    is the resulting code for a simple state recordset. Is this a
    know new
    issue? A setting that got changed?
    <%
    Dim billstates
    Dim billstates_cmd
    Dim billstates_numRows
    Set billstates_cmd = Server.CreateObject ("ADODB.Command")
    billstates_cmd.ActiveConnection = MM_site_STRING
    billstates_cmd.CommandText = ""
    billstates_cmd.Prepared = true
    Set billstates = billstates_cmd.Execute
    billstates_numRows = 0
    %>

    I had the same issue (with my FIU email as well) I called apple support and they gave me the following instructions. Seems to be working perfectly fine.
    - Go to Apple Mail
    - Hit on Preferences, go to Accounts and hit the "+" button
    - Select "Add other mail account", and hit continue
    - Enter your Full Name, FIU email address, and password (DO NOT HIT CREATE)
    - Push down the option key, and while holding down the option key hit "NEXT"
    - It will route you to the Incoming Mail Server Info window, here you will type in the Mail Server as: imap.gmail.com. Again type in your user name (complete FIU email) and password. And again, hold down the option key, and while holding down the option key hit "NEXT".
    - Then it wil route you to the Outgoing Mail Server. Type in the Outgoing Mail Server as: smtp.gmail.com, and again your email and password.
    -Hit Create
    Once you see the email account on your Apple Mail sidebar, go to compose a new message and send yourself an email to your FIU email from your FIU email.
    This worked for me and synced all my folders. Hope it works for you as well.

  • Error " Data missing for the entry check while creating a new waste code

    Hi all, While setting a new Waste code I get the error " Data missing for the entry check, correction:". while filling the NAM- WASTECOCAT - LER item.
    This sould look for the catalog's name included in the phrase set but for some reason it doesn't find it giving me this error.
    I am changing original Characteristics, phrase set, classes, and value assignment type. Just to have my own estructure with Znames for all of them.
    I have also change the enviroment parameter "WAM_PHRSET_WACATLG" with the name of my phrase set.
    I have checked everything several times watching for typos or looking for a missing step.
    I have even tried including my new Z's characteristics in the classe and living the original SAP_EHS_1024_001_WASTE_CATALOG. (changing the enviroment parameter WAM_PHRSET_WACATLG to SAP_EHS_1024_001_WASTE_CATALOG) and it works.
    I will like to change this characteristic by Z_EHS_WA_WASTE_CATALOG
    Phrase set to Z_EHS_WA_WASTE_CATALOG.
    enviroment parameter WAM_PHRSET_WACATLG= Z_EHS_WA_WASTE_CATALOG
    After matching up the master data It should work fine but I might be missing something to get it running ok.
    ¿Any idea?
    Regards,
    Alvaro

    Hello Juan Carlos, the value and class that I want to duplicate and doesn't work is for Waste Code, I have also duplicated the one you have displayed (waste pproperties) without any problem.
    1.I have duplicated and changed class SAP_EHS_1024_001. to Z_EHS_WA
    2. Create a copy of the 5 characteristics included in this class.
    SAP_EHS_1024_001_WASTE_CATALOG
    SAP_EHS_1024_001_WASTE_CODE
    SAP_EHS_1024_001_WA_SUBCATEG
    SAP_EHS_1024_001_WA_CATEGORY
    SAP_EHS_1024_001_REMARK
    change the name by
    Z_EHS_WA_WASTE_CATALOG
    Z_EHS_WA_WASTE_CODE
    Z_EHS_WA_SUBCATEG
    Z_EHS_WA_CATEGORY
    Z_EHS_WA_REMARK.
    I checked the funcion C14K_WASTECATLG_CHECK is in the value of the Z_EHS_WA_WASTE_CODE characteristic
    I checked the funcion C14K_WASTECODE_CHECK is in the value of the Z_EHS_WA_WASTE_CATALOG characteristic
    3. Create phrase sets for each new category. with same name.
    4. Match up the master data.
    5. Change the enviroment parameter.to Z_EHS_WA_WASTE_CATALOG
    I think I have followed all the steps, but for some reason it doesn't find the catalog
    The phrase for the catalog is EWC in english and LER in spanish.
    Regards
    Alvaro.

  • Creation of New Company code

    Hi,
    The customer has asked to create a Company code, i have created it.
    I have maintained the required Configuration in Enterprise structure, Financial accounting Global setting, General ledger Accounting.
    i can do the posting to this Co.code in FB01.
    Now, do i need to do anything in Controlling for this New Co.code?
    And also, Please explain what is " Cross-system Company codes"?
    because while doing posting in FB01, i got error that, the Cross-system Company codes ia not maintained. so i have maintained it in Global Organization Units.
    Thanks,
    Vidya

    Dear Vidya,
    Definition
    Cross-system company codes are used in the distribution in financial accounting. There is exactly one central system for each cross-system company code in the distributed environment. One company code has to be assigned to this cross-system company code on each system involved in the distribution.
    When sending an I-Doc with company code-dependent data, the company code is replaced with the cross-system company code in all company code fields. When receiving this kind of IDoc the reverse conversion takes place on the target system.
    In this section you maintain the cross-system company codes and allocate them to the local company codes.
    Recommendation
    The use of cross-system company codes and business areas in distributed financial accounting is a provisional measure. SAP reserves the right to replace this in a future release with a tool that allows a conversion for all the organizational units of the SAP system.
    Therefore SAP recommends that you choose consistent identifiers for the company code and the cross-system company code.
    Activities
    1. Create a cross-system company code.
    2. Assign the cross-system company code to a chart of accounts to which it is also assigned on the central system.
    This setting is needed on the decentral systems in order to determine the chart of accounts of the company code on the central system.
    3. Assign cross-system company codes to the local company codes.
    Specify the identifiers of the relevant cross-system company codes for each of the individual company codes.

  • UK Payroll new tax code 1000L

    Hello Friends:  
    In UK Payroll new tax code 1000L for year 2014-April 06th.  I have updated in Constant table V_T511K effective April 06th 2014 but this code is not going to Ceridian interface(PU12).  I would like to know where we need to apply this new tax code?.  Is there any OSS Notes?. Any help is appreciated. Thanks in Advance

    Hello
    Please note that the tax calculation for UK payroll is done based on the tax code as maintained in IT0065 ,.
    Also please note the following :-
    Code 0T u2013 This code is used cumulatively with no pay adjustment and all pay is taxed according to the relevant rate dependent on the level of earnings
    Code BR  - This code means that all the employeesu2019 pay is liable to basic rate tax and there is no pay adjustment allowed
    Tables T5G01 and T5G02 are then used by payroll for tax calculation.
    Hope this helps
    Kind Regards
    Ramana

  • Is there a way to force a new session so my "on new session" code will run?

    I'm using apex.oracle.com and I find values of application (global) and page items persisting across logins.
    I didn't expect that? I thought they would go away when I logged out of APEX. But I can change the values, logout, and log back in to the same values. And when I login and start an application, it's not running my "shared components > application processes" initialization code which is set "on new session".
    I thought each login would be a distinct new session with it's distinct set of items. (see definition below)
    So when I run an application, is there a way to force a new session so my "on new session" code will run?
    >
    What Is a Session?
    A session is a logical construct that establishes persistence (or stateful behavior) across page views. Each session is assigned a unique identifier. The Application Express engine uses this identifier (or session ID) to store and retrieve an application's working set of data (or session state) before and after each page view.
    Because sessions are entirely independent of one another, any number of sessions can exist in the database at the same time. Also, because sessions persist in the database until purged by an administrator, a user can return to an old session and continue running an application long after first launching it. A user can also run multiple instances of an application simultaneously in different browser sessions.
    Sessions are logically and physically distinct from Oracle database sessions used to service page requests. A user runs an application in a single Oracle Application Express session from log in to log out with a typical duration measured in minutes or hours. Each page requested during that session results in the Application Express engine creating or reusing an Oracle database session to access database resources. Often these database sessions last just a fraction of a second.
    >
    Thanks -- Howard

    I cleaned up the copy of the Select List code in APEX 4.1.xxx which was not operating correctly before. Now it matches what I have in APEX 4.2.yyyy. And, drum roll please, the select list seemingly works fine there (4.1) as well. But now, the initialization code--which was working fine(!)--FAILS in 4.1!
    <font size="3"><font color="red">•<font face="courier new">
    Okay. Maybe this will help. 1) I logged in. Ran the login page but did not login. Opened the "session" window and wrote down the session ID. Logged out and back in. 2) Ran the login page but did not login. Opened the "session" window and .... it has the same session ID? 3) <b>So the session is persisting across logins!! How is that possible?</b>
    (More) When I log into 3 different applications, I get a different session ID for each but repeated logins always give the same session ID for any given session. </font>

  • Error while creating sales order for a new company code

    Hello SD Gurus,
    The client wanted us to create a new Company Code, Plant, and Sales Organization. We created them. I extended the customer and material in QAS. Now, I'm trying to create one sales order in QAS but the system is throwing one error: "Maintain Profit Center Value in Custom Table in YSD_PROFIT_CNTR".
    I googled for this error but found nothing. Could you please give me the solution asap. I need to prepare test script.
    Thanks in advance
    Regards,
    Anwar

    Dear Mohammed,
    The error message itself states where is the issue. You need to maintain the profit center in table
    YSD_PROFIT_CNTR. This is not SAP Standard provided solution. I guess during the time of implementation team has suggested to maintain the profit center in custom table.
    If the table is"maintenance view" then you can check through SM30 and maintain the relevant entry. If not check if there is any transaction code with attached to this table. This you can check by going through SE93 and by entering Z* or ZSD* or Y* or YSD* and press F4, If the transaction code is starting with Z or Y it will open all the list of transaction codes. By going through the description of the transaction code. you can pick the right transaction code in case if any exists for this table.
    Hope this information is useful to you.
    Regards
    Murali

  • Unwanted G/L Codes in a new Company Code

    We at Pantaloon Retail India Ltd. have created a New Company Code 0114 - Pantaloon Food Products  India Ltd.
    The same has been created by copying an existing Company Code 0101- Pantaloon Retail India Ltd.
    While doing it some unwanted G/Ls have been copied and been transported to Production.
    Now no transaction has been done in any of the G/Ls in the Company Code.
    We are proposing to delete these G/Ls by following method:
    1.Making Company Code non productive thru OBR3.
    2.Deletion of G/L for the specific Co. Code thru OBR2.
    We want to know if it is technically the correct way of doing it.Will there be any adverse impact on the functional  aspects of the system.
    Can the G/Ls be re created, if needed, at a later date?
    With Rgds.,
    Rakesh Kumar
    09324847499

    Hi,
    I presume, both of these companies use the same chart of accounts, right? If it's only several G/Ls, I'd suggest to mark them for deletion or block them in Company Code. Of course, you will be abrle to create the m again (FS00) or unblock them in the future.
    Regards,
    Eli

  • Assign chart of account to a new company code

    Dear all,
    I have created a new company code in system(copy an existing company code data). When I am going to a new chart of account to the new company code, system display an error message as follows:
    Reset company code data before changing the chart of accounts
    Message no. FC140
    Diagnosis
    You have selected a different chart of accounts for a company code.
    You must, however, reset the company code-specific data for the old chart of accounts beforehand.
    Procedure
    If you really want to allocate a different chart of accounts to the company code, first of all reset
    the company-code specific data for the old chart of accounts.
    First of all you must, if it exists, reset the transaction data for this company code.
    Finally, carry out the resetting of the company code-dependent G/L account master data
    (without the general master data).
    Note:
    When dealing with large quantities of data, resetting the master data or transaction data can be very
    time-consuming. In this case, it is advisable to schedule the running of these reports as a batch run.
    Do anyone know how to solve this problem?
    Thanks
    Chris

    Hi Chris,
    I think you have copied the co. code using Trcode , When you have copied the co code all the gl master records from the source co code is also coiped to to the target company code. these gl masters use the COA(Chart of accounts)  used by the source co. code.
    If you want to assigna new COA now to the target co code then you have to delete all the gl accounts from this new co code you can do this by executing TR Code OBR2. Select the gl accounts, Select the check box for "with general master data" and provide the company code and execute. Now you can assign a new COA to this new company code
    Regards
    Pratiksha
    *assign points if useful

  • Extend a customer to a new company code (IDoc DEBMAS06)

    Hi,
    I'm experienceing problems when I try to add company code data (segment E1KNB1M) and sales data (segment E1KNVVM) to an incoming IDoc of basic type DEBMAS06. The customer is to be extended into two company codes and correlating sales areas.
    I have implemented notes 802008 and 895885 and now I get the error message "No batch input data for screen SAPMF02D 0310" when I check in WE02.
    I have narrowed down the problem to billing details on sales data. The problem is that the field account assignment group (KNVV-KTGRD) is emptied on the last run of sales data processing. The value is there earlier but then vanishes mysteriously. Has anyone a tip on how to get around this problem?
    I would most apprechiate any help in this matter.
    Best regards,
    Fredrik Skild

    Hi Muthuraman Govi  and Sanjeev,
    in fact I can see in backend in transaction KS03 (show cost center) there in the F4s, which comp.code + controll area combinations are valid and have indeed cost centers assigned.
    So I have a new valid comp.code and a new valid cont.area.
    The new comp.code belongs to the new contr. area.
    In SRM I set the BUK attribute as described by Sanjeev (I had that already done). Still, if it is like you say, why do I get an error in EBP when trying to buy products from the new plant in the new company code...
    Is there any more config.work necessary in backend or SRM?
    kind regards, matthias

  • How to create a new company code and how to assign it to billing units?

    i am working on roll out project.....please help me in creating a new company code....

    Hi,
    You have raised this query in wrong Forum. Please raise ur query in the relevant forum.
    rgrds,
    Randhir Soni

  • Extend vendors to a new company code

    Hi,
    We are creating a new company code and I want  to know whether there is any standard transcation code to  mass create the vendors master from  the existing company code to the new company code without any BDC or LSMW.
    Thanks,
    SS

    Hi,
    Go to transaction XK99. Here you can extend vendors from one company code to another with below steps:-
    1. In XK99 slect the LFB1 - Company code dat ,and press F8.( Do not select the fields like MM17).
    2. Their will be 2 tab. select the check for DO not change for existing data.
    3. In other tab (data to be created)...give the list of vendors or Balck and the TO comp code.
    4. Bottem of this tab you have to mention the FROM company code.
    5. Press F8 and save.
    With the same method you can extend vendors from one Pur org. to another pur org. by selecting LFM1 instead of LFB1.
    Regards,
    Gaurav

Maybe you are looking for