ResultCount in QUERY_STRING variable

Hello,
UCM 11g.
We have below string which creates the URL and takes the searched query.
*<$HttpCgiPath$>?<$QUERY_STRING$>&IsJava=1&MergeInclude=spreadsheet_search_results$>*
I have observed in firebug, "QUERY_STRING" replaces with many query string values and one of them is a "ResultCount=50". Can we increase the "ResultCount"???? I need to configure it for >2k ResultCount.
Thanks in Advance,
MAK

Hello Guys,
Just resolved it.
We have explicitly added ResultCount paramenter at the end of the string.
<$HttpCgiPath$>?<$QUERY_STRING$>&IsJava=1&MergeInclude=spreadsheet_search_results*&ResultCount=2000*$>
This will give resultCount = 2000.
Thanks,
MAK

Similar Messages

  • Session variable not passing between pages

    Hi, I've got a form that calculates checkbox values and puts them in a total field called txtTotal. When the user clicks send, I need to pass the total to a payment page.  The form page has PHP
    session_start();
    $_SESSION['sessTotal'] = $_POST['txtTotal'];
    and the payment page has
    session_start(); at the top of the page and <?php echo $_SESSION['sessTotal']; ?> where I want the total to display. The total does not carry over to the payment page and I can't work out why.
    Here is all the PHP from the form page as I'm pretty new to PHP and not sure if there's a conflict (should session_start appear more than once?)  Thanks guys
    <?php require_once('Connections/df.php'); ?>
    <?php
    //initialize the session
    if (!isset($_SESSION)) {
    session_start();
    $_SESSION['sessTotal'] = $_POST['txtTotal'];
    // ** Logout the current user. **
    $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
      $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
      //to fully log out a visitor we need to clear the session varialbles
      $_SESSION['MM_Username'] = NULL;
      $_SESSION['MM_UserGroup'] = NULL;
      $_SESSION['PrevUrl'] = NULL;
      unset($_SESSION['MM_Username']);
      unset($_SESSION['MM_UserGroup']);
      unset($_SESSION['PrevUrl']);
      $logoutGoTo = "index.php";
      if ($logoutGoTo) {
        header("Location: $logoutGoTo");
        exit;
    ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "";
    $MM_donotCheckaccess = "true";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && true) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "index.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
      $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <?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;
    $colname_userDets = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_userDets = $_SESSION['MM_Username'];
    mysql_select_db($database_df, $df);
    $query_userDets = sprintf("SELECT usersId, userName, password, name FROM users WHERE userName = %s", GetSQLValueString($colname_userDets, "text"));
    $userDets = mysql_query($query_userDets, $df) or die(mysql_error());
    $row_userDets = mysql_fetch_assoc($userDets);
    $totalRows_userDets = mysql_num_rows($userDets);
    ?>

    OK I got it.  I needed 
    session_start();
    $_SESSION['sessTotal'] = $_POST['txtTotal'];
    on the payments page as well, not just session_start();

  • Passing variable from html to flash

    Hi I have built a flash movie with buttons...depending on
    which button is clicked it loads a different flash movie due to
    variable setting. I am able to set and call the variable s in flash
    fine
    But now i have an html page that needs to blend with this
    flash...So i created buttons on my html page to look like the
    flash...But when i click a certain button i want it to know the
    variable going into the flashpage and load correct movie...not just
    go to the beginning of my flash movie then user will have to choose
    the button again...
    How can i do this?
    thank you in advance
    reno

    well, between the post to forum and this link below i got
    this to work for me
    Just needed to know about the javascript....along with
    putting the value/variable in url as posted..thanks
    http://noscope.com/journal/2003/12/query_string
    thanks for replying with suggestions!
    reno

  • Stored Procedure with bind variables

    Hello,
    I have problems when executing this sample code:
    Procedure Test (..., in_Param IN CHAR, ...)
    Query_Str := 'Select * from Table1 where column1 IN :in_Param';
    Open Cursor1 For Query_Str Using in_Param;
    This Cursor retuns rows when in_Param is 'A'
    This Cursor does not return any row if in_Param is ('A', 'B')
    Can you please help to track the error in this Query?
    Many thanks

    It seems to be that the bind variable is treated as a single discrete object. Hence
    'Select * from Table1 where column1 IN :in_Param';
    is functionally the same as
    'Select * from Table1 where column1 = :in_Param';
    so when in_Param is ('A', 'B'), what actually gets executed is
    Select * from Table1 where column1 = 'A, B';
    Not surprisingly this returns no rows.
    You can of course do this:
    'Select * from Table1 where column1 in( :x, :y, :z)';
    Open Cursor1 For Query_Str Using :i, :j, :k;
    So you could parse in_param yourself, populating the unused variables with nulls, so that if in_param = ('A, B') then i=A, j=B and k=null. Given that in 8i an IN string can have 1000 variables this could be a right mare if you don't put a cap on in_param.
    Your alternative is not to use a bind variable for this statement.
    rgds, APC

  • How to get system Environment variable?

    How to get system Environment variable without using jni?
    just like "JAVA_HOME" or "PATH"...
    Any reply is help to me!! :-)

    Thx for your reply...
    I get it!!!
    Read environment variables from an application
    Start the JVM with the "-D" switch to pass properties to the application and read them with the System.getProperty() method. SET myvar=Hello world
    SET myothervar=nothing
    java -Dmyvar="%myvar%" -Dmyothervar="%myothervar%" myClass
    then in myClass String myvar = System.getProperty("myvar");
    String myothervar = System.getProperty("myothervar");
    This is useful when using a JAVA program as a CGI.
    (DOS bat file acting as a CGI) java -DREQUEST_METHOD="%REQUEST_METHOD%"
    -DQUERY_STRING="%QUERY_STRING%"
    javaCGI
    If you don't know in advance, the name of the variable to be passed to the JVM, then there is no 100% Java way to retrieve them.
    NOTE: JDK1.5 provides a way to achieve this, see this HowTo.
    One approach (not the easiest one), is to use a JNI call to fetch the variables, see this HowTo.
    A more low-tech way, is to launch the appropriate call to the operating system and capture the output. The following snippet puts all environment variables in a Properties class and display the value the TEMP variable. import java.io.*;
    import java.util.*;
    public class ReadEnv {
    public static Properties getEnvVars() throws Throwable {
    Process p = null;
    Properties envVars = new Properties();
    Runtime r = Runtime.getRuntime();
    String OS = System.getProperty("os.name").toLowerCase();
    // System.out.println(OS);
    if (OS.indexOf("windows 9") > -1) {
    p = r.exec( "command.com /c set" );
    else if ( (OS.indexOf("nt") > -1)
    || (OS.indexOf("windows 2000") > -1 )
    || (OS.indexOf("windows xp") > -1) ) {
    // thanks to JuanFran for the xp fix!
    p = r.exec( "cmd.exe /c set" );
    else {
    // our last hope, we assume Unix (thanks to H. Ware for the fix)
    p = r.exec( "env" );
    BufferedReader br = new BufferedReader
    ( new InputStreamReader( p.getInputStream() ) );
    String line;
    while( (line = br.readLine()) != null ) {
    int idx = line.indexOf( '=' );
    String key = line.substring( 0, idx );
    String value = line.substring( idx+1 );
    envVars.setProperty( key, value );
    // System.out.println( key + " = " + value );
    return envVars;
    public static void main(String args[]) {
    try {
    Properties p = ReadEnv.getEnvVars();
    System.out.println("the current value of TEMP is : " +
    p.getProperty("TEMP"));
    catch (Throwable e) {
    e.printStackTrace();
    Thanks to W.Rijnders for the W2K fix.
    An update from Van Ly :
    I found that, on Windows 2003 server, the property value for "os.name" is actually "windows 2003." So either that has to be added to the bunch of tests or just relax the comparison strings a bit: else if ( (OS.indexOf("nt") > -1)
    || (OS.indexOf("windows 2000") > -1 )
    || (OS.indexOf("windows 2003") > -1 ) // works but is quite specific to 2003
    || (OS.indexOf("windows xp") > -1) ) {
    else if ( (OS.indexOf("nt") > -1)
    || (OS.indexOf("windows 20") > -1 ) // probably is better since no other OS would return "windows" anyway
    || (OS.indexOf("windows xp") > -1) ) {
    I started with "windows 200" but thought "what the hell" and made it "windows 20" to lengthen its longivity. You could push it further and use "windows 2," I suppose. The only thing to watch out for is to not overlap with "windows 9."
    On Windows, pre-JDK 1.2 JVM has trouble reading the Output stream directly from the SET command, it never returns. Here 2 ways to bypass this behaviour.
    First, instead of calling directly the SET command, we use a BAT file, after the SET command we print a known string. Then, in Java, when we read this known string, we exit from loop. [env.bat]
    @set
    @echo **end
    [java]
    if (OS.indexOf("windows") > -1) {
    p = r.exec( "env.bat" );
    while( (line = br.readLine()) != null ) {
    if (line.indexOf("**end")>-1) break;
    int idx = line.indexOf( '=' );
    String key = line.substring( 0, idx );
    String value = line.substring( idx+1 );
    hash.put( key, value );
    System.out.println( key + " = " + value );
    The other solution is to send the result of the SET command to file and then read the file from Java. ...
    if (OS.indexOf("windows 9") > -1) {
    p = r.exec( "command.com /c set > envvar.txt" );
    else if ( (OS.indexOf("nt") > -1)
    || (OS.indexOf("windows 2000") > -1
    || (OS.indexOf("windows xp") > -1) ) {
    // thanks to JuanFran for the xp fix!
    p = r.exec( "cmd.exe /c set > envvar.txt" );
    // then read back the file
    Properties p = new Properties();
    p.load(new FileInputStream("envvar.txt"));
    Thanks to JP Daviau
    // UNIX
    public Properties getEnvironment() throws java.io.IOException {
    Properties env = new Properties();
    env.load(Runtime.getRuntime().exec("env").getInputStream());
    return env;
    Properties env = getEnvironment();
    String myEnvVar = env.get("MYENV_VAR");
    To read only one variable : // NT version , adaptation for other OS is left as an exercise...
    Process p = Runtime.getRuntime().exec("cmd.exe /c echo %MYVAR%");
    BufferedReader br = new BufferedReader
    ( new InputStreamReader( p.getInputStream() ) );
    String myvar = br.readLine();
    System.out.println(myvar);
    Java's System properties contains some useful informations about the environment, for example, the TEMP and PATH environment variables (on Windows). public class ShowSome {
    public static void main(String args[]){
    System.out.println("TEMP : " + System.getProperty("java.io.tmpdir"));
    System.out.println("PATH : " + System.getProperty("java.library.path"));
    System.out.println("CLASSPATH : " + System.getProperty("java.class.path"));
    System.out.println("SYSTEM DIR : " +
    System.getProperty("user.home")); // ex. c:\windows on Win9x system
    System.out.println("CURRENT DIR: " + System.getProperty("user.dir"));
    Here some tips from H. Ware about the PATH on different OS.
    PATH is not quite the same as library path. In unixes, they are completely different---the libraries typically have their own directories. System.out.println("the current value of PATH is: {" +
    p.getProperty("PATH")+"}");
    System.out.println("LIBPATH: {" +
    System.getProperty("java.library.path")+"}");
    gives the current value of PATH is:
    {/home/hware/bin:/usr/local/bin:/usr/xpg4/bin:/opt/SUNWspro/bin:/usr/ccs/bin:
    /usr/ucb:/bin:/usr/bin:/home/hware/linux-bin:/usr/openwin/bin/:/usr/games/:
    /usr/local/games:/usr/ccs/lib/:/usr/new:/usr/sbin/:/sbin/:/usr/hosts/:
    /usr/openwin/lib:/usr/X11/bin:/usr/bin/X11/:/usr/local/bin/X11:
    /usr/bin/pbmplus:/usr/etc/:/usr/dt/bin/:/usr/lib:/usr/lib/lp/postscript:
    /usr/lib/nis:/usr/share/bin:/usr/share/bin/X11:
    /home/hware/work/cdk/main/cdk/../bin:/home/hware/work/cdk/main/cdk/bin:.}
    LIBPATH:
    {/usr/lib/j2re1.3/lib/i386:/usr/lib/j2re1.3/lib/i386/native_threads:
    /usr/lib/j2re1.3/lib/i386/client:/usr/lib/j2sdk1.3/lib/i386:/usr/lib:/lib}
    on my linux workstation. (java added all those execpt /lib and /usr/lib). But these two lines aren't the same on window either:
    This system is windows nt the current value of PATH is:
    {d:\OrbixWeb3.2\bin;D:\jdk1.3\bin;c:\depot\cdk\main\cdk\bin;c:\depot\
    cdk\main\cdk\..\bin;d:\OrbixWeb3.2\bin;D:\Program
    Files\IBM\GSK\lib;H:\pvcs65\VM\win32\bin;c:\cygnus
    \cygwin-b20\H-i586-cygwin32\bin;d:\cfn\bin;D:\orant\bin;C:\WINNT\system32;C:\WINNT;
    C:\Program Files\Dell\OpenManage\Resolution Assistant\Common\bin;
    d:\Program Files\Symantec\pcAnywhere;
    C:\Program Files\Executive Software\DiskeeperServer\;C:\Program Files\Perforce}
    LIBPATH:
    {D:\jdk1.3\bin;.;C:\WINNT\System32;C:\WINNT;d:\OrbixWeb3.2\bin;D:\jdk1.3\bin;
    c:\depot\cdk\main\cdk\bin;c:\depot\cdk\main\cdk\..\bin;
    d:\OrbixWeb3.2\bin;D:\Program Files\IBM\GSK\lib;
    H:\pvcs65\VM\win32\bin;c:\cygnus\cygwin-b20\H-i586-cygwin32\bin;d:\cfn\bin;
    D:\orant\bin;C:\WINNT\system32;
    C:\WINNT;C:\Program Files\Dell\OpenManage\ResolutionAssistant\Common\bin;
    d:\Program Files\Symantec\pcAnywhere;
    C:\Program Files\Executive Software\DiskeeperServer\;C:\Program Files\Perforce}

  • DDocName in the resultset gets higher preference than local variable: unable to set dDocName in the binder using Idoc Script

    Hi,
    I have the following code built using idocScript
    <$dDocName=variableName$>
    <$executeService("DOC_INFO_BY_NAME")$>
    Note: variableName has value of contentID for which "DOC_INFO_BY_NAME" has be executed.
    When i execute this, i see that DOC_INFO_BY_NAME is getting executed for previous content ID that "dDocName" was  holding. In other words, following assignment
    <$dDocName=variableName$>
    Is not taking effect.
    I think the value is not getting updated in the binder. How do i correct this.
    This is little urgent, Any help would be greatly appreciated.
    Thanks and Regards,
    Seshan K.

    This issue is seen when we are accesing the page that list down all the blogs postings along with author images.
    Step 1: Execute the search to fetch blog postings:
             Associated IdocScript: <@dynamichtml dv_blog_landing_page_postings@>
    Step2: Loop through result set and build blog listing
              Assocaited html fragment: <$include dv_blog_post_searchresults_landing_html$>
         Sub step2: Fetch image of blog Author when displaying the blogs listings
                   Associated fragment: <@dynamichtml dv_get_blog_author_image@>
                   Note: Issue is seen in this block
    Following is the actual logic. All the calls to the display fragments are in bold. All the comments are in italics.
    <@dynamichtml dv_blog_landing_page_postings@>
    <$ssNextRow = getValue("#active", "ssNextRow")$>
    <$if not #local.ssNextRow$>
    <$ssNextRow = 1$>
    <$else$>
    <$ssNextRow = #local.ssNextRow$>
    <$endif$>
    <$ResultCount = getValue("#active", ssFragmentInstanceId & "_ssNumPostsPerPage")$>
    <$ResultCount = 5$>
    <$endRow = ssNextRow+ResultCount$>
    <$if #active.debug$>ssNextRow:<$ssNextRow$><br>endRow:<$endRow$><br><$endif$>
    <$ssDontShowInLists="true"$>
    <$if not ssQueryText$>
    <$ssQueryText = "dDocType <matches> `BLOG_ENTRY` <and> xParentId <matches> `" &BlogId &"`"$>
    <$endif$>
    <$QueryText = ssQueryText$>
    <$QueryText = QueryText & " <AND> xPublishDate <= `" & parseDate(dateCurrent()) & "`"$>
    <$QueryText = QueryText & " <AND> xCountryName <substring> `" & countryCode & "`"$>
    <$SortField="xPublishDate", SortOrder="Desc"$>
    <$blogCount = 1$>
    <$StartRow=ssNextRow$>
    <$ssFirstHit=ssNextRow$>
    <$if #active.debug$>
    <textarea cols=10 rows=10><$QueryText$></textarea> <br>
    ResultCount<$ResultCount$><br>
    StartRow: <$StartRow$><br>
    QueryText: <$QueryText$><br/>
    <$endif$>
    <$executeService("SS_GET_SEARCH_RESULTS")$>
    <$newRS = rsRename("SearchResults", "rsBlogPostings")$>
    <$ssAllRows = TotalRows$>
    <$ssThisPage = (ssNextRow + ResultCount - 1)/ResultCount$>
    <$ssLastPage = (ssAllRows + ResultCount - 1)/ResultCount$>
    <$ssFirstHit=ssNextRow$>
    <$ssLastHit=ssNextRow + ResultCount - 1$>
    <$if ssThisPage == ssLastPage$>
    <$ssLastHit = ssLastHit - 1$>
    <$endif$>
    <!-- Update the author name if blog author is not specified -->
    <$if rsBlogPostings$>
    <$loop rsBlogPostings$>
    <$if strLength(rsBlogPostings.xProductName)==0$>
    <$postAuthorImageEntry = ssIncludeXml(rsBlogPostings.dDocName, "Blog_Entry/AuthorImage/node()")$>
    <$posOfColon=strIndexOf(postAuthorImageEntry,"::") $>
    <$authorContentID=strSubstring(postAuthorImageEntry,0,posOfColon)$>
    <$dDocName=authorContentID$>
    <$executeService("DOC_INFO_BY_NAME")$>
    <$BlogEntryAuthorName=DOC_INFO.xProductName$>
    <$if BlogEntryAuthorName$>
    <$updateAuthor_In_BlogEntry(rsBlogPostings.dID,rsBlogPostings.dDocName,rsBlogPostings.dSecurityGroup,rsBlogPostings.dRevLabel,rsBlogPostings.dDocAccount,BlogEntryAuthorName)$>
    <$c="Custom IDOC Function updateAuthor_In_BlogEntry(dID,dDocName,dSecurityGroup,dRevLabel,dDocAccount,xProductName)"$>
    <$endif$>
    <$endif$>
    <$endloop$>
    <$endif$>
    <$BlogName = BlogId$>
    <$if rsBlogPostings$>
    <$blogLandingPage=1$>
    <$loop rsBlogPostings$>
    <$likeDocName = rsBlogPostings.dDocName$>
    <$allowRegisterLike=0$>
    <$blogUrl = rsBlogPostings.ssUrl$>
    <!-- Call to the fragment to display blog listings -->
    <$include dv_blog_post_searchresults_landing_html$>
    <$blogCount = blogCount + 1$>
    <$endloop$>
    <$endif$>
    <$dDocName = BlogId$>
    <$if #active.debug$><b>Paging Debug:</b><br>ssAllRows:<$ssAllRows$><br>ssThisPage:<$ssThisPage$><br>ssLastPage:<$ssLastPage$><br>ssNextRow:<$ssNextRow$><br>ResultCount:<$ResultCount$><br><$endif$>
    <@end@>
    <!-- Fetching Details of each blog -->
    <@dynamichtml dv_blog_post_searchresults_landing_html@>
    <!--blog posting [start]-->
    <!-- Fetching the details of each individual blogs -->
    <$postTitle = ssIncludeXml(rsBlogPostings.dDocName, "Blog_Entry/Title/node()")$>
    <$post = ssIncludeXml(rsBlogPostings.dDocName, "Blog_Entry/Post/node()")$>
    <$postAuthorImage = ssIncludeXml(rsBlogPostings.dDocName, "Blog_Entry/AuthorImage/node()")$>
    <$listingSummary = ssIncludeXml(rsBlogPostings.dDocName, "Blog_Entry/short_description_blogarticles/node()")$>
    <$include dv_blog_post_listing_sumamry$>
    <$if blogLandingPage$> <$postEntry = ssIncludeXml(dDocName, "Blog_Entry/Post/node()")$><$endif$>
    <div class="blog_container_template_2">
    <div class="blog_separator"> </div>
    <div class="blog_container">
    <div class="blog_image_2">
    <$include dv_get_blog_author_image$>
    </div>
    <div class="blog_title_and_author_wide">
    <h3><a href="<$ssUrl$>"><$postTitle$></a></h3>
    <p><strong><$lc("COLT_DV_wwBy_" & languageCode)$>  <a href="<$authorBlogsListLink$>"><$authorName$></a> - <$formatDateWithPattern(rsBlogPostings.xPublishDate, "dd MMM yyyy")$></strong>
    </p>
    <$allowRegisterLike=1$> <$c="If set to 1 it breaks since more than 1 on page"$>
    <$wcmFragment("wcm", "DV_FRG_LIKESCOMMENTS", "DV_FRG_LIKESCOMMENTS", "1")$>
    </div>
    </div>
    <div class="blog_separator_dots"> </div>
    <div style="clear:both"></div>
    <div class="blog_container_Blog_Post">
    <p><$listingSummary$> [...] <a href="<$ssUrl$>"><$lc("ReadMore_" & languageCodeUpper)$></a></p>
    </div>
    </div>
    <!--blog posting [End]-->
    <@end@>
    <!-- Fetching Author image for each blog, we basically execute DOC_INFO_BY_NAME and construct the resource url for the image. -->
    <!-- This is the block where actual problem is -->
    <@dynamichtml dv_get_blog_author_image@>
    <$authorName="anonymous"$>
    <$if postAuthorImage AND strIndexOf(postAuthorImage,"::") > 0$>
    <$posOfDot1=strIndexOf(postAuthorImage,"::") $>
    <$variableName=strSubstring(postAuthorImage,0,posOfDot1)$>
    <$dDocName=variableName$> <!-- this assignment does not work -->
    <!-- This service gets executed for the for blog entry, rather than image file -->
    <$executeService("DOC_INFO_BY_NAME")$>
    <$authorName=DOC_INFO.xProductName$>
    <$authorBio=DOC_INFO.xComments$>
    <$authorBioLink=DOC_INFO.xKeywords$>
    <$authorBlogsListLink="/" & strLower(countryCode) & "/" & languageCode & "/blogs/author/" & DOC_INFO.xFriendlyURL$>
    <$c="The following variable has been added for Security Model changes "$>
    <$blogAccount = "@" & strReplace(DOC_INFO.dDocAccount,"/","/@")$>
    <$authorImgSrc = HttpRelativeWebRoot & "groups/" & DOC_INFO.dSecurityGroup & "/"&blogAccount&"/documents/" & DOC_INFO.dDocType & "/" & variableName & "." & DOC_INFO.dExtension$>
    <img height="70px" width="66px" src="<$strLower(authorImgSrc)$>" />
    <$else$>
    <img class="blogAuthorImage" width=70 src="<$HttpWebRoot$>resources/DV_Resources/images/public/silhouette.png"/>
    <$endif$>
    <@end@>
    Thanks,
    Seshan K.

  • PHP: URL variable that is unnamed

    Suppose I have
    <a href="foo.php/?foo"
    How would I get at that URL variable?
    If I print_r($_GET), I just get an array....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================

    Ahhhh! Thanks.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "David Powers" <[email protected]> wrote in message
    news:gfchr4$crv$[email protected]..
    > Murray *ACE* wrote:
    >> Suppose I have
    >> <a href="foo.php/?foo"
    >>
    >> How would I get at that URL variable?
    >
    > $_SERVER['QUERY_STRING']
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "The Essential Guide to Dreamweaver CS3"
    (friends of ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • MM_Username Variable

    Hi. I hope someone can help as I've been struggling with this
    for a few weeks.
    On the first php page I have the user register and log in
    automatically. On the 2nd php page i want to greet the username but
    the MM_Username variable won't appear on the screen. I'm using
    Apache2 as the testing server. Where am I going wrong?
    Here's the code:-

    <?php require_once('Connections/registration.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;
    // *** Redirect if username exists
    $MM_flag="MM_insert";
    if (isset($_POST[$MM_flag])) {
    $MM_dupKeyRedirect="usernam.html";
    $loginUsername = $_POST['username'];
    $LoginRS__query = sprintf("SELECT username FROM tablename1
    WHERE username=%s", GetSQLValueString($loginUsername, "text"));
    mysql_select_db($database_registration, $registration);
    $LoginRS=mysql_query($LoginRS__query, $registration) or
    die(mysql_error());
    $loginFoundUser = mysql_num_rows($LoginRS);
    //if there is a row in the database, the username was found
    - can not add the requested username
    if($loginFoundUser){
    $MM_qsChar = "?";
    //append the username to the redirect page
    if (substr_count($MM_dupKeyRedirect,"?") >=1) $MM_qsChar
    = "&";
    $MM_dupKeyRedirect = $MM_dupKeyRedirect . $MM_qsChar
    ."requsername=".$loginUsername;
    header ("Location: $MM_dupKeyRedirect");
    exit;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
    $editFormAction .= "?" .
    htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) &&
    ($_POST["MM_insert"] == "form1")) {
    $insertSQL = sprintf("INSERT INTO tablename1 (fname,
    surname, sex, country, email, username) VALUES (%s, %s, %s, %s, %s,
    %s)",
    GetSQLValueString($_POST['fname'], "text"),
    GetSQLValueString($_POST['surname'], "text"),
    GetSQLValueString(isset($_POST['sex']) ? "true" : "",
    "defined","1","0"),
    GetSQLValueString($_POST['country'], "text"),
    GetSQLValueString($_POST['email'], "text"),
    GetSQLValueString($_POST['username'], "text"));
    mysql_select_db($database_registration, $registration);
    $Result1 = mysql_query($insertSQL, $registration) or
    die(mysql_error());
    $insertGoTo = "recordin.php";
    if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
    header(sprintf("Location: %s", $insertGoTo));
    ?><?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
    session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
    $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['username'])) {
    $loginUsername=$_POST['username'];
    $password=$_POST['email'];
    $MM_fldUserAuthorization = "";
    $MM_redirectLoginSuccess = "recordin.php";
    $MM_redirectLoginFailed = "usernam.html";
    $MM_redirecttoReferrer = false;
    mysql_select_db($database_registration, $registration);
    $LoginRS__query=sprintf("SELECT username, email FROM
    tablename1 WHERE username=%s AND email=%s",
    GetSQLValueString($loginUsername, "text"),
    GetSQLValueString($password, "text"));
    $LoginRS = mysql_query($LoginRS__query, $registration) or
    die(mysql_error());
    $loginFoundUser = mysql_num_rows($LoginRS);
    if ($loginFoundUser) {
    $loginStrGroup = "";
    //declare two session variables and assign them
    $_SESSION['MM_Username'] = $loginUsername;
    $_SESSION['MM_UserGroup'] = $loginStrGroup;
    if (isset($_SESSION['PrevUrl']) && false) {
    $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
    header("Location: " . $MM_redirectLoginSuccess );
    else {
    header("Location: ". $MM_redirectLoginFailed );
    ?><!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=iso-8859-1" />
    <title>Untitled Document</title>
    <script type="text/JavaScript">
    <!--
    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document;
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++) x=d.forms
    [n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers.document);
    if(!x && d.getElementById) x=d.getElementById(n);
    return x;
    function MM_validateForm() { //v4.0
    var
    i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2];
    val=MM_findObj(args
    if (val) { nm=val.name; if ((val=val.value)!="") {
    if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
    if (p<1 || p==(val.length-1)) errors+='- '+nm+' must
    contain an e-mail address.\n';
    } else if (test!='R') { num = parseFloat(val);
    if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
    if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
    min=test.substring(8,p); max=test.substring(p+1);
    if (num<min || max<num) errors+='- '+nm+' must contain
    a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is
    required.\n'; }
    } if (errors) alert('The following error(s)
    occurred:\n'+errors);
    document.MM_returnValue = (errors == '');
    //-->
    </script>
    </head>
    <body>
    <div align="center">
    <form action="<?php echo $loginFormAction; ?>"
    method="POST" name="form1" id="form1"
    onsubmit="MM_validateForm('fname','','R','surname','','R','email','','RisEmail','username ','','R');return
    document.MM_returnValue">
    <table width="500" border="0">
    <tr>
    <td><label>First name
    <input name="fname" type="text" id="fname" />
    </label></td>
    <td><label>Surname
    <input name="surname" type="text" id="surname" />
    </label></td>
    </tr>
    <tr>
    <td>Sex:
    <label> M
    <input name="sex" type="radio" value="radiobutton" />
    F
    <input name="radiobutton" type="radio"
    value="radiobutton" />
    </label></td>
    <td><label>Country
    <select name="country" size="1" id="country">
    <option>Austrailia</option>
    <option>Japan</option>
    <option>United Kingdom</option>
    <option>United States</option>
    </select>
    </label></td>
    </tr>
    <tr>
    <td><label>Email address
    <input name="email" type="text" id="email" />
    </label></td>
    <td><label>Username
    <input name="username" type="text" id="username" />
    </label></td>
    </tr>
    <tr>
    <td colspan="2"><div align="center">
    <label>
    <input type="submit" name="Submit" value="Submit" />
    </label>
    </div></td>
    </tr>
    </table>
    <input type="hidden" name="MM_insert" value="form1" />
    </form>
    </div>
    </body>
    </html>

  • Need help with $_GET and $_SERVER['QUERY_STRING']

    Hello,
    What I have is a search, and if a user clicks sort by type, sort should be added to the end of the query string. For some reason its not working. It's probably a simple problem but I'm stuck. What I have is a long query with search information. And then a button in a form.
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    <form action="<?php $editFormAction; ?>" method="get" id="change_order" name="change_order">
          <input name="sort" type="button" value="TV_Type" />
    </form>
    What happens when the button is clicked is the search query is replaced by "?sort=TV_type" instead of being added on to the end of the existing query. Please help.
    Thanks,
    Kelsey

    Are u searching data in database? If that so then u need to do search query. If u want to display the result in the same page, filter the data by using Form Variable in Recordset(using $_POST instead of $_GET).

  • Help with redirect using an HTML content variable

    Hi All,
    I have created an update_user page to update records in the
    table, and
    when submitted I want to be redirected to another "page". I
    really only
    have one page, an admin.php page, with one of the div's named
    "main".
    It uses the HTML content variable to replace the include file
    based on
    its name:
    > <?php
    > if (!isset($_REQUEST['content']))
    > include("main.inc.php");
    > else
    > {
    > $content = $_REQUEST['content'];
    > $nextpage = $content . ".inc.php";
    > include($nextpage);
    > } ?>
    So what I want to do now is redirect to something like the
    following:
    admin.php?content=userList
    I have tried replacing the value of the variable $updateGoTo
    shown below
    to include the content variable as shown above, but it
    doesn't work. So
    I think I'm not understanding the code below and that's
    preventing me
    from accomplishing what I want.
    > $updateGoTo = "admin.php";
    > if (isset($_SERVER['QUERY_STRING'])) {
    > $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" :
    > $updateGoTo .= $_SERVER['QUERY_STRING'];
    > }
    > header(sprintf("Location: %s", $updateGoTo));
    Can someone explain to me what the above code is doing, and
    what I need
    to do to accomplish my task?
    Many thanks.

    Micha,
    Thanks for your replies.
    > HTTP requires an absolute URL in the Location header.
    You have to add
    >
    http:// and the hostname.
    Why does the relative link work on my testing server as I had
    it listed
    before? Making the link absolute isn't any great problem, so
    I'll just
    do it.
    > 1) Don't use $_REQUEST, it contains mixed data from
    three different
    > sources. If you want to access URL parameters, use
    $_GET.
    >
    > 2) _Never_ trust any user-submitted data! The above code
    allows remote
    > code injection:
    >
    >
    http://example.com/admin.php?content=http://malicious.server/hackme
    >
    > Make sure that $_GET['content'] contains an allowed
    value, before you
    > use it in an include statement.
    Thanks for the pointer, I'll use $_GET instead. This is a
    password
    protected area that is only accessible to trusted users with
    admin
    privileges, so I would think they would be safe. However, on
    the public
    side I'll consider creating an allowable list for all HTML
    variables.
    Thanks.
    Brett

  • Problem in setting TNS_ADMIN variable for REPORTS10g

    Hi,
    I am trying to setup web reports using rwservlet on tomcat server. I have set the required environment variables as in documentation including TNS_ADMIN but the servlet is not picking up the value and using the default tnsnames.ora file instead.
    This is causing problems as i cannot make an entry to the default file and we keep the tnsnames.ora file on a separate location.
    Also, can i place rwservlet.properties file at a different location than $REPORTS_HOME/reports/conf directory?!!!
    The response of : http://loncrmappu1.uk.db.com:7700/demo/rwservlet/showenv/?server=loncrmappu1_10g_server gives me the below values:
    HTTP Environment Variables 10.1.2.0.2
    SERVER_NAME loncrmappu1.uk.db.com
    SERVER_PORT 7700
    SCRIPT_NAME /rwservlet
    SERVER_PROTOCOL HTTP/1.1
    SERVER_SOFTWARE undefined
    GATEWAY_INTERFACE undefined
    SERVER_PORT_SECURE undefined
    ACCEPT */*
    REQUEST_METHOD GET
    REMOTE_HOST 10.129.202.176
    REMOTE_ADDR 10.129.202.176
    REMOTE_USER undefined
    AUTH_TYPE undefined
    PATH_INFO showenv/
    QUERY_STRING server=loncrmappu1_10g_server
    PATH_TRANSLATED /home/partest/users/VishalK/jakarta-tomcat-5.0.30/webapps/demo/showenv
    CONTENT_LENGTH undefined
    CONTENT_TYPE undefined
    AUTHORIZATION undefined
    USER-AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
    REMOTE_IDENT undefined
    REFERER undefined
    OracleAS Reports Services - Servlet Environment Variables Return to Top
    KeyMapFile /u001/oracle/product/reports10g/reports/conf/cgicmd.dat
    DBAUTH /u001/oracle/product/reports10g/reports/templates/rwdbauth.htm
    SYSAUTH /u001/oracle/product/reports10g/reports/templates/rwsysauth.htm
    server undefined
    DIAGNOSTIC yes
    traceopts undefined
    ERRORTEMPLATE /u001/oracle/product/reports10g/reports/templates/rwerror.htm
    SERVER_IN_PROCESS yes
    COOKIEEXPIRE 30
    ENCRYPTIONKEY reports9i
    DIAGHEADTAGS undefined
    DIAGBODYTAGS undefined
    HELPURL undefined
    RELOAD_KEYMAP NO
    IMAGEURL http://loncrmappu1.uk.db.com:7700/reports/rwservlet
    SINGLESIGNON yes
    OracleAS Reports Services - Server and Engine Environment Variables Return to Top
    PATH /u001/oracle/product/reports10g/jdk/bin:/u001/oracle/product/reports10g/bin:/u001/oracle/product/reports10g/jdk/bin:/u001/oracle/product/reports10g/bin:.:/usr/ccs/bin:/home/sentinel1/download/Solaris_JDK_1.2.2_07/bin:.:/usr/ccs/bin:/home/sentinel1/download/Solaris_JDK_1.2.2_07/bin:.:/usr/ccs/bin:/home/sentinel1/download/Solaris_JDK_1.2.2_07/bin:/usr/bin::/etc:/opt/EMCpower/bin/sparcv9:/opt/VRTSvcs/EMC/bin:/etc/emc/bin:/u001/oracle/product/9.2.0.4/bin::/home/sentinel1/WLE5.0/bin:/u001/oracle/product/9.2.0.4/bin:/home/partest/Appbin/bin:/home/partest/Appbin/omgen/bin:/u001/oracle/product/9.2.0.4/bin:/home/partest/.utils:/home/partest/SUNTOOLS:/u001/oracle/product/reports10g/reports/lib32:/usr/bin:/usr/local/bin:/usr/ccs/bin:.:/usr/SUNWspro/bin:/usr/dt/bin:/opt/SUNWspro/bin:/usr/ucb:/usr/openwin/bin:/home/partest/Scripts:/u001/oracle/product/9.2.0.4/bin:/home/sentinel1/WLE5.0/bin:/home/partest/Appbin/bin:/home/partest/Appbin/omgen/bin:/usr/sbin:/usr/proc/bin:/u001/oracle/product/9.2.0.4/lib:/home/Weblogic/bin:/u001/oracle/product/dev6i/bin://home/partest/tdbdata:/home/partest/ADMIN/bin:/u001/oracle/product/reports10g/bin:/u001/oracle/product/reports10g/jdk/bin:/home/partest/dbus_3_0_8_14/scripts:/home/partest/dbus_3_0_8_14/bin/sh:/home/partest/dbus_3_0_8_14/bin/SPARC_5.8:/home/partest/dbus_3_0_8_14/SPARC_5.8/6.0/bin:/u001/oracle/product/9.2.0.4/bin::/home/sentinel1/WLE5.0/bin:/u001/oracle/product/9.2.0.4/bin:/home/partest/Appbin/bin:/home/partest/Appbin/omgen/bin:/u001/oracle/product/9.2.0.4/bin:/home/partest/.utils:/home/partest/SUNTOOLS:/u001/oracle/product/reports10g/reports/lib32:/usr/bin:/usr/local/bin:/usr/ccs/bin:.:/usr/SUNWspro/bin:/usr/dt/bin:/opt/SUNWspro/bin:/usr/ucb:/usr/openwin/bin:/home/partest/Scripts:/u001/oracle/product/9.2.0.4/bin:/home/sentinel1/WLE5.0/bin:/home/partest/Appbin/bin:/home/partest/Appbin/omgen/bin:/usr/sbin:/usr/proc/bin:/u001/oracle/product/9.2.0.4/lib:/home/Weblogic/bin:/u001/oracle/product/dev6i/bin://home/partest/tdbdata:/home/partest/ADMIN/bin:/u001/oracle/product/reports10g/bin:/u001/oracle/product/reports10g/jdk/bin:/u001/oracle/product/9.2.0.4/bin::/home/sentinel1/WLE5.0/bin:/u001/oracle/product/9.2.0.4/bin:/home/partest/Appbin/bin:/home/partest/Appbin/omgen/bin:/u001/oracle/product/9.2.0.4/bin:/home/partest/.utils:/home/partest/SUNTOOLS:/u001/oracle/product/reports10g/reports/lib32:/usr/bin:/usr/local/bin:/usr/ccs/bin:.:/usr/SUNWspro/bin:/usr/dt/bin:/opt/SUNWspro/bin:/usr/ucb:/usr/openwin/bin:/home/partest/Scripts:/u001/oracle/product/9.2.0.4/bin:/home/sentinel1/WLE5.0/bin:/home/partest/Appbin/bin:/home/partest/Appbin/omgen/bin:/usr/sbin:/usr/proc/bin:/u001/oracle/product/9.2.0.4/lib:/home/Weblogic/bin:/u001/oracle/product/dev6i/bin://home/partest/tdbdata:/home/partest/ADMIN/bin:/u001/oracle/product/reports10g/bin:/u001/oracle/product/reports10g/jdk/bin
    DISPLAY
    LD_LIBRARY_PATH /u001/oracle/product/reports10g/jdk/jre/lib/sparc/server:/u001/oracle/product/reports10g/jdk/jre/lib/sparc:/u001/oracle/product/reports10g/jdk/jre/../lib/sparc:/u001/oracle/product/reports10g/jdk/jre/lib/sparc:/u001/oracle/product/reports10g/lib32:/u001/oracle/product/reports10g/jdk/jre/lib/sparc:/u001/oracle/product/reports10g/lib32:/u001/oracle/product/reports10g/lib32:/home/partest/batch/Q1_04/lib:/usr/lib:/home/partest/CORBA/lib:/home/sentinel1/WLE5.0/lib:/u001/oracle/product/9.2.0.4/lib:/u001/oracle/product/dev6i/lib:/home/partest/GENCODE/lib/sparc:/home/partest/Appbin/lib:/home/partest/xerces-c_2_3_0-Sol2.7ForCC/lib:/home/partest/xml-xalan/c/lib:/home/partest/ldap/lib:/home/partest/dbus_3_0_8_14/SPARC_5.8/6.0/lib
    ORACLE_HOME /u001/oracle/product/reports10g
    TNS_ADMIN /u001/oracle/product/reports10g/network/admin
    NLS_LANG AMERICAN_AMERICA.WE8ISO8859P1
    USER_NLS_LANG
    RW /u001/oracle/product/reports10g/reports
    REPORTS_PATH /u001/oracle/product/reports10g/reports/templates:/u001/oracle/product/reports10g/reports/samples/demo:/u001/oracle/product/reports10g/reports/integ:/u001/oracle/product/reports10g/reports/printers:/u001/oracle/product/reports10g/reports/templates:/u001/oracle/product/reports10g/reports/samples/demo:/u001/oracle/product/reports10g/reports/integ:/u001/oracle/product/reports10g/reports/printers:/home/partest/report/rdfs:/u001/oracle/product/reports10g/reports/templates
    REPORTS_TMP /tmp
    REPORTS_TAGLIB_URI /WEB-INF/lib/reports_tld.jar
    java.class.path /u001/oracle/product/reports10g/j2ee/home/lib/ojsp.jar:/u001/oracle/product/reports10g/reports/jlib/rwrun.jar:/u001/oracle/product/reports10g/jlib/zrclient.jar
    sourceDir
    tempDir
    useDataCache
    ignoreDataParameter

    Hi
    I checked the mentioned Patch Levels, everything seems to be fine.
    After I did few changes in JCOs and checked the XCM configuration throughly shopadmin URL (http://<host>:<port>/shopadmin/shopadmin/init.do) has started working.
    Now I have maintained 2 shops and can see the B2B and B2C web portals fine.
    But as soon as I select any material, it is giving error saying error in XCM configuration related to IPC.
    could you pleaase help me out with this?
    Also, as soon as I click on the B2B Login link, it dumps.
    And useradmin URL  http://<host>:<port>/isauseradm/useradmin/init.do   is still giving "Page can not be displayed",
    These problems are related to XCM configuration, but not sure where exactly and which configuration is missing. please can you suggest ? Any XCM configuration related document will also be helpful.
    Regards,
    Neha

  • Can you nest ESI variables?

    For example, I want to lookup a value in an ESI Environment file. However, the name of the value to lookup is specified in the query string.
    So I'd be doing something like the following to extract the desired value:
    $(env{$(QUERY_STRING{name})})
    ...where 'env' is the name of the esi:environment.
    However, this does not work. Is it possible to nest esi variables in this way. If so, how?
    Many thanks,
    Francis

    Any plans to implement this?
    It would be very useful in some situations. For example, you have a page that outputs a value from an esi environment file, where the name of that value is specified in the Query String.
    So your URL is something like:
    lookup.jsp?lookup=firstName
    Then, in lookup.jsp, you have something like:
    $(env{$(QUERY_STRING{lookup})})
    ...which does a look up in the environment file for the key specified using the 'lookup' query string parameter. In the example above, the value for 'firstName' would be retrieved from the environment file.
    Any chance of implementing nested ESI variables in the near future?

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Error while offsetting a variable

    Hello Experts
    I want to display the data for last 5 years in my query. So I tried using the SAP exit variable Current Calendar Year (0CYEAR) and the offset it by 5. However, I am getting the following error message for the query "System error in program SAPLRR12 and form REP_ASSIGN_INITIAL_OPT-01"
    Any Help on this is appreciated and points will be assigned.
    Thanks

    Thanks Chetan for your prompt reply. I have assigned points.
    But I would appreciate if you help me clear my understanding of offseting a variable.
    Say if the Current Calendar Year variable returns 2008, then will offseting that variable by 5 return me the data for years 2008, 2007, 2006, 2005 , 2004. Or, will it just return me the data for 2008 - 5 = 2004 only.
    Thanks
    Rishi

  • Error while Creating Presentation variable

    Hi,I am new to OBIEE
    I am facing this error:
    "A numeric value was expected (received "max("Sales Measures".Dollars)").
    Error Details
    Error Codes: EHWH2A7E"
    1.I am using paint rpd.I want to use presentation variable.
    2.So i took two column in criteria 1.Region 2. Dollars
    3.In Dollars edit formula ,I created presentation variable i.e. @{Doller_presentation}{max("Sales Measures".Dollars)} in the column formula.
    4.And In the same column i use filter
    Add ->presentation variable->variable exp =Doller_presentation and default =max("Sales Measures".Dollars)
    5.I have added this request on dashboard page,but error is coming.
    6.Also i have created dashboard prompt,
    Set presentation variable to "Doller_presentation"
    and in column formula :@{Doller_presentation}{max("Sales Measures".Dollars)}
    and took that prompt on the same dashboard page.
    so promt with 2 values are coming.1.All choces 2.13087528..may be ths is max value of dollar but on click its showing error as
    "Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42021] The query does not reference any tables. (HY000)
    SQL Issued: SELECT 13087529 FROM Paint ORDER BY 1"
    I am confuse abt use of presentation variable
    Please Help,
    Thanks
    Kapil
    [email protected]
    Edited by: user13098263 on May 9, 2010 10:58 PM
    Edited by: user13098263 on May 9, 2010 11:01 PM
    Edited by: user13098263 on May 9, 2010 11:02 PM
    Edited by: user13098263 on May 9, 2010 11:04 PM

    Hi Rachit
    You answered my doubt.This one really works . Thanks a lot !
    But i have one more doubt i.e if have created the Presentation variable in the dashboard prompt and I want to use it in a report
    i.e the scenario is If I have created a new column i.e " Revised Salary " in the Presentation Services and want the values to be entered there dynamically upon end users choice. For ex the end user selecrts value of 1 then the report would display an increament of 500 to all the employees in the " Revised Salary " column and if the end user select value of 2 .. the report would display a decrement of 500 in the " Revised salary column".
    I am getting the following error :
    ========================================================================
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)
    SQL Issued: SELECT "D0 Time"."T05 Per Name Year" saw_0, "D2 Market"."M04 Region" saw_1, "D4 Product"."P01 Product" saw_2, "D1 Customer"."C1 Cust Name" saw_3, "F1 Revenue"."1-01 Revenue (Sum All)" saw_4, CASE WHEN 0='1' then "F1 Revenue"."1-01 Revenue (Sum All)" +500 else "F1 Revenue"."1-01 Revenue (Sum All)" - 500 end saw_5 FROM "Sample Sales" ORDER BY saw_0, saw_1, saw_2, saw_3
    ========================================================================
    Please NOTE : The column on which I want to do an increament is : "F1 Revenue"."1-01 Revenue (Sum All)"
    Thanks

Maybe you are looking for

  • Powerbook G4 hangs after few minutes of usage

    Since February 06 I have a PB G4: 1.67GHZ, model Powerbook5,8 Since this weekend it hangs after a few minutes of usage. I tried a whole load of possible solutions, like resetting the RAM, removing the battery and holding the powerbutton for 5 seconds

  • Could not complete iTunes store request error 4002

    When I try to update the Genius app I get the above message " We could not complete your iTunes store request  An Unknown error ocurred, 4002". I also get this error message when I launch the ITunes. I've searched the ITunes for Windows commmunity an

  • CANNOT SIGN IN TO ADOBE READER ON IPAD

    IT KEEPS TELLING ME MY PASSWORD IS WRONG>>>>CHANGED IT 3 TIMES>>>>STILL CANT GET IN!

  • Viewing Picasa albums in Apple TV ?

    Does anyone know a " work around " to enable viewing Picasa albums in Apple TV ? Am new user of ATV.  Have 180 Picasa Albums.  I see people are able to host digital imagery from iTunes in ATV. I have the app " Web Albums " that does great job hosting

  • Dynamic Scripting for Call Center Surveys

    Hi All, I need to create dynamic scripting for Call Centres. Any idea how dynamic scripting can be done. Thanks a lot. Amiga