Export Recordset As XML w/ session variable

I'm trying to use the Export Recordset As XML function. It works great for recordsets without any variables (such as a session variable), but as soon as a add a variable to the record set, I get a "Header already Sent!" Error.
The prior (non-adobe) version had a "variable" selection on the Advanced tab which seems to be gone now.
How do I add a session variable to the recordset and have it play nice with Export Recordset As XML? I need an XML doc that only includes a specific users information. The session variable is made when the user logs in to see the data.

I'm trying to use the Export Recordset As XML function. It works great for recordsets without any variables (such as a session variable), but as soon as a add a variable to the record set, I get a "Header already Sent!" Error.
The prior (non-adobe) version had a "variable" selection on the Advanced tab which seems to be gone now.
How do I add a session variable to the recordset and have it play nice with Export Recordset As XML? I need an XML doc that only includes a specific users information. The session variable is made when the user logs in to see the data.

Similar Messages

  • Advice on ADDT Export Recordset as XML Tutorial

    Hello all,
    I recently had a situation where I needed to use ADDT's "Export Recordset as XML" behavior. However, the "Export Recordset as XML" behavior creates a php page that generates the XML when the php script is run and the resulting XML is published to the browser.
    Unfortunately, I needed the php page to not publish to the browser, but to write the generated XML to a real XML file. I looked for help in the forums, but I was unable to find any information regarding this and it seemed some people had been looking for this ability.
    I was able to figure out how to use ADDT's "Export Recordset as XML" to write the XML to a file when the ADDT created Export XML php page is run.
    I want to share a brief description on how I did this. However, I had to modify the ADDT file "XMLExport.class.php" to get this to work. The modifications are are very simple and easy. You just have to comment out a few lines and change an echo to a return in the "XMLExport.class.php" file.
    Before I take the time to write this up, I wanted to be sure it's ok to explain in these forums how to edit ADDT files. I know the license agreement allows me to modify the code for my own use. But does the license agreement allow me tell other's how to modify the code?
    At the top of the Adobe "XMLExport.class.php" page you see this:
    Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it.
    Rather than try and decipher a license agreement, I thought someone, probably Gunter :), might be able to let me know before I go to the trouble.
    Thanks,
    Shane

    Hi Shane,
    But does the license agreement allow me tell other's how to modify the code?
    As this snenario isn´t explicitely mentioned respectively prohibited, I don´t see any problem at all with telling folks how to modify an ADDT "includes" file, though I´m not sure about the "distribution" aspect, as - to my understanding - an original or modified ADDT file can´t be offered for download or sent to others per email or whatever else might qualify as "distribution".
    My suggestion for remaining on the safe side :: just write a tutorial and tell folks how to modify whatever file, because merely providing an information about a modification certainly doesn´t tangent the "use, modify, and distribute" definition of the license at all -- however, it´s the reader of your tutorial who´s having to decide whether the suggested modification is in accordance with the terms of the Adobe license agreement, though this shouldn´t be a problem as well, as they´re going to modify the code for their own use :-)
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Filtering a Recordset with session variable

    Hi
    I am trying to filter a recordset based on a session
    variable. The session variable is passed from the login page via a
    username which is their email address. This has been successful.
    However when I want to filter the users table - tbl_users to
    show their first name it doesn't work.
    I followed the adobe help tutorial plus ahave tried other
    combinations and I am now at a loss on where exactly I am going
    wrong.
    The recordset is rs_UserAccess
    I have a session variable called - MM_Username
    The table has 5 records of various users
    The code that I have fiddling with is -
    <%
    Dim rs_UserAccess
    Dim rs_UserAccess_numRows
    Set rs_UserAccess = Server.CreateObject("ADODB.Recordset")
    rs_UserAccess.ActiveConnection = MM_conn_sidecounter_STRING
    rs_UserAccess.Source = "SELECT * FROM tbl_users WHERE
    username = MM_Username"
    rs_UserAccess.CursorType = 0
    rs_UserAccess.CursorLocation = 2
    rs_UserAccess.LockType = 1
    rs_UserAccess.Open()
    rs_UserAccess_numRows = 0
    %>
    Any help would be appreciated. I have outlined below the
    different combinations I have tested.
    Try No1
    rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE username
    = Session("MM_Username")”
    Message:
    Microsoft VBScript compilation error '800a0401'
    Expected end of statement
    /main.asp, line 182
    Try No2
    rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE username
    = Session(‘MM_Username’)”
    Message:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [Microsoft][ODBC Microsoft Access Driver] Undefined function
    'Session' in expression.
    /main.asp, line 186
    Try No3
    rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE username
    = Session(MM_Username)”
    Message:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [Microsoft][ODBC Microsoft Access Driver] Undefined function
    'Session' in expression.
    /main.asp, line 186
    Try No4
    rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE username
    = Session Variable MM_Username"
    Message:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [Microsoft][ODBC Microsoft Access Driver] Syntax error
    (missing operator) in query expression 'username = Session Variable
    MM_Username'.
    /main.asp, line 186
    Try No5
    rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE username
    = MM_Username"
    Message:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
    [Microsoft][ODBC Microsoft Access Driver] Too few parameters.
    Expected 1.
    /main.asp, line 186
    Thanks in advance
    Cheers
    Downsy

    Try this:
    rs_UserAccess.Source = "SELECT * FROM tbl_users WHERE
    username = " & Session("MM_Username")
    Keep that on one line.
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "Downsy42" <[email protected]> wrote in
    message news:[email protected]...
    > Hi
    > I am trying to filter a recordset based on a session
    variable. The session
    > variable is passed from the login page via a username
    which is their email
    > address. This has been successful.
    > However when I want to filter the users table -
    tbl_users to show their first
    > name it doesn't work.
    > I followed the adobe help tutorial plus ahave tried
    other combinations and I
    > am now at a loss on where exactly I am going wrong.
    > The recordset is rs_UserAccess
    > I have a session variable called - MM_Username
    > The table has 5 records of various users
    >
    > The code that I have fiddling with is -
    >
    > <%
    > Dim rs_UserAccess
    > Dim rs_UserAccess_numRows
    >
    > Set rs_UserAccess =
    Server.CreateObject("ADODB.Recordset")
    > rs_UserAccess.ActiveConnection =
    MM_conn_sidecounter_STRING
    > rs_UserAccess.Source = "SELECT * FROM tbl_users WHERE
    username = MM_Username"
    > rs_UserAccess.CursorType = 0
    > rs_UserAccess.CursorLocation = 2
    > rs_UserAccess.LockType = 1
    > rs_UserAccess.Open()
    >
    > rs_UserAccess_numRows = 0
    > %>
    >
    >
    >
    > Any help would be appreciated. I have outlined below the
    different
    > combinations I have tested.
    >
    >
    > Try No1
    > rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE
    username =
    > Session("MM_Username")?
    > Message:
    > Microsoft VBScript compilation error '800a0401'
    > Expected end of statement
    > /main.asp, line 182
    >
    > Try No2
    > rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE
    username =
    > Session(?MM_Username?)?
    > Message:
    > Microsoft OLE DB Provider for ODBC Drivers error
    '80040e14'
    > [Microsoft][ODBC Microsoft Access Driver] Undefined
    function 'Session' in
    > expression.
    > /main.asp, line 186
    >
    > Try No3
    > rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE
    username =
    > Session(MM_Username)?
    > Message:
    > Microsoft OLE DB Provider for ODBC Drivers error
    '80040e14'
    > [Microsoft][ODBC Microsoft Access Driver] Undefined
    function 'Session' in
    > expression.
    > /main.asp, line 186
    >
    > Try No4
    > rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE
    username = Session
    > Variable MM_Username"
    > Message:
    > Microsoft OLE DB Provider for ODBC Drivers error
    '80040e14'
    > [Microsoft][ODBC Microsoft Access Driver] Syntax error
    (missing operator) in
    > query expression 'username = Session Variable
    MM_Username'.
    > /main.asp, line 186
    >
    > Try No5
    > rs_UserAccess.Source ="SELECT * FROM tbl_users WHERE
    username = MM_Username"
    > Message:
    > Microsoft OLE DB Provider for ODBC Drivers error
    '80040e10'
    > [Microsoft][ODBC Microsoft Access Driver] Too few
    parameters. Expected 1.
    > /main.asp, line 186
    >
    > Thanks in advance
    > Cheers
    > Downsy
    >
    >
    >

  • Filter recordset with session variable

    This has never happened to me before, but for some reason, my
    recordset that drives a dynamic table won't filter results based on
    a session variable. I know session variables are working because I
    have the session variable echo on the page (dragged-n-dropped my
    session variable from the Bindings panel to my page), and that
    works fine. So why can't I filter my recordset with the same
    session variable??? What's going on?
    PS: I've attached my result page's code to this
    message.

    Gabe the Animator wrote:
    > <?php require_once('Connections/sales.php'); ?>
    > <?php
    > if (!function_exists("GetSQLValueString")) {
    > function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "",
    > $theNotDefinedValue = "")
    > {
    > $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;
    > }
    > }
    >
    > $colname_rsSales = "-1";
    > if (isset($_SESSION['state'])) {
    > $colname_rsSales = $_SESSION['state'];
    > }
    > mysql_select_db($database_sales, $sales);
    > $query_rsSales = sprintf("SELECT * FROM sales WHERE city
    = %s",
    > GetSQLValueString($colname_rsSales, "text"));
    > $rsSales = mysql_query($query_rsSales, $sales) or
    die(mysql_error());
    > $row_rsSales = mysql_fetch_assoc($rsSales);
    > $totalRows_rsSales = mysql_num_rows($rsSales);
    >
    > session_start(); ?>
    The issue is that PHP doesn't "work" with session values
    until the session has started, and that must be done on each page,
    and must be done in the code *above* any reference to a session
    variable. The code you posted has the session_start() after it
    tries to use the session value ito filter the recordset. So move
    this last line of code ( session_start(); ) above $colnam_rsSales =
    "-1". Better yet, use:
    if(!session_id()){
    session_start();
    To prevent some versions of PHP from generating a
    warning/notice if you've called session_start() on the page already
    and you call it again.
    Danilo Celic
    | Extending Knowledge Daily :
    http://CommunityMX.com/
    | Adobe Community Expert

  • Filtering recordset with session variable

    This has never happened to me before, but for some reason, my
    recordset that drives a dynamic table won't filter results based on
    a session variable. I know session variables are working because I
    have the session variable echo on the page (dragged-n-dropped my
    session variable from the Bindings panel to my page), and that
    works fine. So why can't I filter my recordset with the same
    session variable??? What's going on?
    PS: I've attached my result page's code to this
    message.

    Actually, problem solved. I moved " session_start()" above
    "$colname_rsSales = "-1" ", which did the trick.

  • How do i filter recordsets using session variable???  Please help this is driving me mad...!!

    I am having the same problem as user "Gabe the animator" in a post sent in 2007.
    "my recordset that drives a dynamic table won't filter results based on a session variable. I know session variables are working because I have the session variable echo on the page (dragged-n-dropped my session variable from the Bindings panel to my page), and that works fine. So why can't I filter my recordset with the same session variable???"
    here is the code:
    <?php require_once('Connections/mockconn.php'); ?>
    <?php
    session_start();
    ?>
    <?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(!session_id()){
    session_start();
    $colname_info = "-1";
    if (isset($_SESSION['email'])) {
      $colname_info = $_SESSION['email'];
    mysql_select_db($database_mockconn, $mockconn);
    $query_info = sprintf("SELECT name, last_name, email, password FROM registration WHERE email = %s", GetSQLValueString($colname_info, "text"));
    $info = mysql_query($query_info, $mockconn) or die(mysql_error());
    $row_info = mysql_fetch_assoc($info);
    $totalRows_info = mysql_num_rows($info);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>home</title>
    </head>
    <body>
    <div id="info">hello <?php echo $row_info['']; ?></div>
    <?php
    if (isset($_SESSION['email'])) {
              echo 'your email: '.' '. $_SESSION['email'] .' '.'good job';}
                        ?>
    </body>
    </html>
    PLEASE PLEASE HELP.... I have been at this for day's...
    how do I get the record set to filter based on the value of the session variable

    Sorry I forgot to mension the error I am getting?
    ( ! ) Notice: Undefined index: in C:\wamp\www\mock\home.php on line 59
    Call Stack
    Time
    Memory
    Function
    Location
    1
    0.0093
    389024
    {main}( )
    ..\home.php:0
    Why is this error coming up?

  • Export Selection to XML

    Hi,
    I want to create a website that I can enter loads of dishes
    to a database and then, go to a page where I can select a set of
    dishes and have them export to an XML file.
    Some of the descriptions will not be the same so the user can
    use a textarea to add to the XML tag for Description.
    But I do not have any experience with XML and databases. I
    have no idea if it will work the way I want it to?
    Please help me,
    Thank you

    It's exporting everything because your recordset query
    selected everything.
    Filter the recordset on some factor using the WHERE keyword
    or select only
    you need by using something like SELECT whatever, something
    else from menu
    would give you just whatever and something else. Because you
    used *, you
    got everything.
    There is code on the Spry sample page that does this for you
    in PHP, Cold
    Fusion or ASP:
    http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
    It was created for use with Spry, but doesn't have to be used
    just for Spry.
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "The_FedEx_Guy" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi,
    > I've used ADDT to export recordset to XML but its
    exporting everything :-s
    >
    >
    >
    > <?php
    > // Load the XML classes
    > require_once('includes/XMLExport/XMLExport.php');
    >
    > mysql_select_db($database_db, $db);
    > $query_Recordset1 = "SELECT * FROM menu";
    > $Recordset1 = mysql_query($query_Recordset1, $db) or
    die(mysql_error());
    > $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    > $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    >
    > // Begin XMLExport Recordset1
    > $xmlExportObj = new XMLExport();
    > $xmlExportObj->setRecordset($Recordset1);
    > $xmlExportObj->addColumn("Dish_group", "Dish_group");
    > $xmlExportObj->addColumn("Dish_name", "Dish_name");
    > $xmlExportObj->addColumn("Dish_description",
    "Dish_description");
    > $xmlExportObj->setMaxRecords("ALL");
    > $xmlExportObj->setDBEncoding("UTF-8");
    > $xmlExportObj->setXMLEncoding("UTF-8");
    > $xmlExportObj->setXMLFormat("NODES");
    > $xmlExportObj->setRootNode("menu");
    > $xmlExportObj->setRowNode("dish");
    > $xmlExportObj->Execute();
    > // End XMLExport Recordset1
    > ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > <title>Untitled Document</title>
    > </head>
    > <body>
    > <table border="0" cellspacing="0" cellpadding="0">
    > <tr>
    > <td><?php echo $row_Recordset1['Dish_group'];
    ?></td>
    > </tr>
    > </table>
    > <?php do { ?>
    > <form id="form1" name="form1" method="post"
    action="">
    > <table border="0" cellspacing="0" cellpadding="0">
    > <tr>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    > <tr>
    > <td><span class="style1"><?php echo
    $row_Recordset1['Dish_name'];
    > ?></span></td>
    > <td> </td>
    > <td> </td>
    > <td><input name="checkbox" type="checkbox"
    id="checkbox"
    > value="yes"
    > /></td>
    > </tr>
    > <tr>
    > <td><span class="style2"><?php echo
    > $row_Recordset1['Dish_description'];
    ?></span></td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    > </table>
    > </form>
    > <?php } while ($row_Recordset1 =
    mysql_fetch_assoc($Recordset1)); ?>
    > <form id="form2" name="form2" method="post"
    action="">
    > <input type="submit" name="Submit" id="button"
    value="Submit" />
    > </form>
    > Export
    > </body>
    > </html>
    > <?php
    > mysql_free_result($Recordset1);
    > ?>
    >

  • Recordset to XML

    Now that I'm using CS5, I see that the developer toolbox is no longer available. As such, I'm wondering what others are using to export recordsets to XML. I know that I can do this manually with some code, but I wondered if there is a new way in CS5 that I'm missing or a preferred extension.
    Thanks for any suggestions.
    J

    Rest assured the preferred method is to do this manually with some code.
    http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html

  • Unable to filter a recordset using a session  variable

    I have a volunteer application page and when the volunteer presses <Submit> their info is saved in a MySQl db table and a session variable is created containing the primary key of their record in the table, control is then passed to a "success page". The success page can access the session variable (I proved this by displaying the session variable on the success page) so my next step was to create a recordset in the success page with a filter using the session variable to select the appropriate row in the table, allowing me to display to the volunteer the info they submitted.
    I set up a test success page which displays the session variable and one field of the volunteer info. When I test this I see the session variable displayed but the corresponding volunteer info field from the recordset is not displayed.
    The volunteer application page is here www.hollisterairshow.com/volunteerapp.php and the successpage is here www.hollisterairshow.com/thanksvol.php
    The code that creates the session variable in the volunteer application page is shown below
    $_SESSION['volunteer_id'] = mysql_insert_id();
    The code to display the session variable in the success page is shown below
    <?php  echo $_SESSION['volunteer_id']; ?>
    The code to display the volunteer info is shown below
    <h1> Thank You <?php echo $row_rsVolunteerApp['firstname']; ?>!! </h1>
    The recordset definition is shown below
    The success page test result is shown below, as you can see the volunteer's first name is not displayed immediately after the "Thank you" message but the session variable holding the correct primary key (41) is shown correctly.
    Does anyone have an idea of what I'm doing wrong?
    Thanks
    Tony

    Where did you put session_start()? It needs to be before the variable is accessed. It's obviously before the line that displays the value in your page, but is it before the SQL query is generated?
    Also, have you checked in phpMyAdmin to see whether volunteernumber 41 has any values in the database?

  • Xml search and replace for 'Session Variables' in column title view

    Hi Experts,
    I have around 10 reports where measure column titles are displayed based the session variable.
    Below is the syntax I have used in the column title
    @{biServer.variables['NQ_SESSION.VariableName']}
    Now I would like to replace the above syntax with some static text. To do this, I am trying to use the xml search and replace feature in the catalog manager.
    For some reason, catalog manager is unable to find the syntax in the xml file. I have tried using escape character also for the apostrophe by using &apos, but no luck.
    Any pointers on how to replace the text?
    Thanks

    Using Analysis get the xml conversion for @{biServer.variables['NQ_SESSION.VariableName']} from Advanced tab's xml code
    use this code to find in catalog manager, if you able to find then go for search and replace option.
    I think this should work for you.

  • Alternate method to writing filter for recordset using session variable

    I'm not sure if this can be done.  I have a user page which I'd like to return database info based upon a userid entered on another page. So far, the session variable (userid) is captured on the user page however it is supposed to return the user's name rather than displaying the session variable.
    My problem is this. Within dreamweaver, I am able to create recordsets however I cannot create a filter. The connection works. At this point, I am searching for a workaround where I can tie in the session variable to recordsets. I should make mention that whenever I update the sql statement using the recordset widget, my recordset disappears. ?  At any rate, heres a sample of the code sans connection strings, etc.
    <%
    Dim Recordset1
    Dim Recordset1_cmd
    Dim Recordset1_numRows
    Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
    Recordset1_cmd.ActiveConnection = MM_newuniversity1_STRING
    Recordset1_cmd.CommandText = "SELECT name FROM table WHERE userid =  '" & Session("userid_my") & "'"
    Recordset1_cmd.Prepared = true
    Set Recordset1 = Recordset1_cmd.Execute
    Recordset1_numRows = 0
    %>
    On the user page, I have a 'Welcome' and the following code
    {Request.userid_my}
    Any suggestions? I'm afraid I'm a newbie to asp within dreamweaver cs3.

    >When I insert  request.userid_my code it returns the session variable
    AFAIK, session variables are not part of the request object - so I do not understand why you are referencing them this way. I would use the standard reference method : Welcome <%Response.Write(Session("username"))%>
    >when I insert the recordset associated with 'name' I get an Adobe End of file error. ?
    Sounds like a possible problem with your installation. You may need to try reinstalling DW. How are you "inserting" this recordset and when does the error occur?
    Regarding your next post...
    >select name from table_name where userid = '" & namemy & "'"
    >The statement consistently returns a 'quoted string not properly terminated' error.....
    The select statement you quoted is obviously not complete. If you are refering to the select in your OP:
    Recordset1_cmd.CommandText = "SELECT name FROM table WHERE userid =  '" & Session("userid_my") & "'"
    I see nothing wrong with that syntax and the string appears to be terminated correctly. If there is a different statement causing the error, please post the entire line and include a line above and below.

  • Use of Session Variable in Dashboard Page XML

    Hi All,
    Can we use a Session variable in the Dashboard Page XML?
    My Requirement is,
    There are 1000+ users, each user will have access to same dashboard. But a different report in the same dashboard.
    So we want to Save individual user reports in the location /users/LOGIN_NAME/Financials/ABC
    and dynamically change the Dashboard Page XML, to accept Session Variable VALUEOF(NQ_SESSION.USER) in place of LOGIN_NAME.
    So that for each user, they will see only their report.

    On the face of it, Session is ideal for this, however this is SharePoint and the obvious isn't always the best. 
    You'd need to do the calculation about memory usage and number of concurrent users to ensure it really is a viable option in Production. 
    If it isn't viable, or wouldn't scale to possible future usage what would you do? Then you need to ask if it's really necessary to move between pages? If the user needs to move through a dialog for example, that could be hosted on a single page which might
    have different controls or sections made visible as the user progressed through the use case.
    Passing data between pages in SharePoint is a lot more difficult than it should be. Sometimes it's best to stay put, and certainly safer than using Session if you're really not sure if Session will stop your solution from scaling.
    Always remember, SharePoint might be hosted on ASP.NET but the design considerations are significantly different than if this were a pure ASP.NET application.
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • Adding session variables from a recordset

    I'm trying to create a session variable from data from a
    recordset, can anyone help?
    this is what I want the session variable to be from the
    recordset:
    <?php echo $row_rsStrata_plan['plan_str']; ?>
    but I'm not sure where to go from here: $_SESSION[test] =?
    Thanks,

    Make sure you have <?php session_start(); ?> at the top
    of your page
    Then
    $_SESSION['test'] = $row_rsStrata_plan['plan_str'];
    Gareth
    http://www.phploginsuite.co.uk/
    PHP Login Suite V2 - 34 Server Behaviors to build a complete
    Login system.

  • Possible to reference a session variable in customMessages.xml?

    In customMessages.xml, I put in this code:
    <!--Allow user to change password -->
    <WebMessage name="kmsgChangePasswordLink">
    <HTML>
    <a href="http://www.somelink.com?someThingToPass=BISessionVariable">Change Password</a>
    </HTML>
    </WebMessage>Is there a way to reference a BI session variable within customMessages.xml somehow?

    John,
    You make a good point. So I can't do this in customMessages.xml... can I make a change somewhere else that would accomplish this? Basically I want to be able to bring in the content of a session variable into the 'My Account' page. Does anyone know if this can be done?

  • Session variable size limitation (LV Webservices)

    Hi community,
    I read couple dozen email addresses from an XML and trying to write them into a session variable. The email addresses are comma separated and have a total string length of about 1100 characters. When I try to write it into a session variable LabVIEW drops an error message (-67158).
    It is very clearly related to the size of the string as if use lets say only 200 characters I dont receive the error message.
    How can I get rid of this limitation?
    Thanks!

    I am writing a general purpose webpage where I need email notifications. I have the workaround ready (before I send out the emails I dont read the emails from a session, but using the userID stored in the session to read the email from the xml). But generally having this limitation is annoying and unnecessary as normally you easily can store 100kB in one session. (probably even more, but that was the max I have ever did)

Maybe you are looking for

  • Why is my music no longer playing on my phone after iOS7 update?

    I updated my phone to iOS7 (yay!) but now the majority of my music will not play on my my phone.  The music plays on my computer just fine, but doesn't appear to sync to my phone now.  This is how my 32 gig phone now appears on iTunes: It's filled to

  • Did it possible To do Sparse Lookup in ODI as Informatica/ Datastage ?

    Hi, In ODI, Lookup is new concept is introduced anyone implemented it ? Can I know how to do it? Sparse Lookup could be possible in ODI? How can i should be done? I am learning ODI 11g new concepts..Can any one implement this please guide me how to i

  • Where do I put my packages?

    Once I have created a package, where do I put it so that it can be imported from a java app anywhere on my PC? In other words, where are packages such as java.lang that everyone has?

  • Parent TaskFlow doesnt get control back if child taskflow is closed in IE

    Hi, We have a bounded taskflow , which internally calls a child taskflow in a new window. The problem is if we close the child taskflow window before it renders completely it doesn't pass the control back to the parent taskflow. After that parent win

  • CAN SOMEONE PLEASE HELP? WE ARE NOT ALL TECHOGEEKS...

    I recant my previous post saying I had no problems. I have five email addresses. ALL are used and are important to me; three are linked to business websites and have stationery printed. I CANNOT AFFORD TO CHANGE ALL THESE.  All are used via MS outloo