Using variables on included files?

Can you not use #variable# on a file that is added on an
existing .cfm file
with <cfinclude> ??
I have:
<cfquery name="check_user" datasource="SalleBoise">
select u_id,u_fName,u_lName,u_foil_rating,u_foil_year
from tournfencer
where u_user='#form.Username#'
</cfquery>
<cfinclude template="inc/event_reg.cfm">
- event_reg.cfm is-
<cfform name="form1" method="post"
action="CF/process2.cfm?pmode=a&tid=#url.tid#"
id="FormBorder"
style="margin-top:2px;"><span class="bold">Events
competing in:</span><table
width="98%" border="0">
<cfif #url.f# eq 1>
<tr>
<td width="15%" align="center">Open Foil</td>
<td width="10%" align="center"><input
name="OpenFoil" type="checkbox"
value="1" checked="yes" onClick="optionFoil(this.form)">
</td>
</tr>
</cfif>
<cfif #url.e# eq 1>
<tr>
<td align="center">Open Epee </td>
<td align="center"><input name="OpenEpee"
type="checkbox" value="1"
checked="yes" onClick="optionEpee(this.form)"></td>
</tr>
</cfif>
</table>
<cfset id=createuuid()>
<input type="hidden" name="id"
value="<cfoutput>#id#</cfoutput>">
<input type="hidden" name="fRating"
value="<cfoutput>#check_user.u_foil_rating#</cfoutput>">
<div align="center">
<input name="Submit" type="submit" value="Register"
onClick="return
checkmail(this.form.FencerEmail)">
</div>
</cfform>
But if I dump the variable #fRating#, I get a message that
says Element
U_FOIL_RATING is undefined in CHECK_USER

I have the code as:
event_reg.cfm:
<cfform name="form1" method="post"
action="CF/process2.cfm?pmode=a&tid=#url.tid#"
id="FormBorder"
style="margin-top:2px;"><span class="bold">Events
competing in:</span><table
width="98%" border="0">
<cfif #url.f# eq 1>
<tr>
<td width="15%" align="center">Open Foil</td>
<td width="10%" align="center"><input
name="OpenFoil" type="checkbox"
value="1" checked="yes" onClick="optionFoil(this.form)">
</td>
</tr>
</cfif>
<cfif #url.e# eq 1>
<tr>
<td align="center">Open Epee </td>
<td align="center"><input name="OpenEpee"
type="checkbox" value="1"
checked="yes" onClick="optionEpee(this.form)"></td>
</tr>
</cfif>
</table>
<cfset id=createuuid()>
<input type="hidden" name="id"
value="<cfoutput>#id#</cfoutput>">
<cfdump var="#fRating#">
<input type="hidden" name="fRating"
value="<cfoutput>#check_user.u_foil_rating#</cfoutput>">
<div align="center">
<input name="Submit" type="submit" value="Register"
onClick="return
checkmail(this.form.FencerEmail)">
</div>
</cfform>
tournament2.cfm:
<!-- Variables which need to be defined -->
<cfparam name="URL.logout" default="0">
<cfparam name="invalid_login" default="0">
<!-- Code will not be executed unless #FORM.username# IS
NOT "" -->
<cfif structKeyExists(form,"username")>
<!-- Check Username, Password, and Level of
Administration -->
<cfquery name="check_user" datasource="SalleBoise">
select u_id,u_fName,u_lName,u_foil_rating,u_foil_year
from tournfencer
where u_user='#form.Username#'
</cfquery>
<!-- If there is a valid User then Login user -->
<cfif check_user.recordcount is not 0>
<!-- Log them in with a timeout of 30 minutes (1800 sec)
and set
level of Admin-->
<cflogin idletimeout="1800">
<cfloginuser
name = "#FORM.username#"
password ="#FORM.password#"
roles = "1">
</cflogin>
<cfelse>
<!-- If an invalid Login Attemp, Set invalid to 1 for
invalid login
script -->
<cfset invalid_login = 1>
</cfif>
</cfif>
<!-- If index.cfm?logout=1 is clicked then Log The User
Out -->
<cfif URL.logout is 1>
<cflogout>
<cflocation url="index.cfm">
</cfif>
<!--- Simple index.cfm file that logs you in --->
<cfif GetAuthUser() is "">
<form name="form1" method="post"
action="<cfoutput>#cgi.HTTP_REFERER#</cfoutput>">
User: <input name="username" type="text"
id="username"><br>
Pass: <input name="password" type="password"
id="password"><br>
<input type="submit" name="Submit" value="Submit">
</form>
<cfelse>
<cfinclude template="inc/event_reg.cfm">
<!---
<p>User:
<cfoutput>#GetAuthUser()#</cfoutput></p>
<p><cfoutput>#check_user.u_fName# -
#check_user.u_id#</cfoutput><br> --->
<a href="index.cfm?logout=1">Logout</a>
<cfdump var="#check_user#">
</cfif>
"Kronin555" <[email protected]> wrote in
message
news:[email protected]...
> If you did that dump at the very top of
inc/event_reg.cfm, then there must
> be
> code in event_reg.cfm that we don't see. Are you
resetting check_user to
> anything in that file?
>
> > But if I dump the variable #fRating#, I get a
message that says Element
> U_FOIL_RATING is undefined in CHECK_USER
>
> Where are you trying to dump the fRating variable? In
CF/process2.cfm? In
> event_reg.cfm, you are setting the value of a hidden
form variable to
> check_user.u_foil_rating. When this page loads, if you
view source, is the
> value being set correctly?
>
> Your statement about dumping fRating leads me to believe
the error is
> actually
> occurring on a different page, not this page. What page
are you actually
> getting the undefined variable error?
>

Similar Messages

  • How to use variables in logical file name definition FILE

    Hi Friends,
    How can I use variables in logical file name definition (tcode FILE). The requirement is to pass value in these variables (based on selection criteria), and use it as part of file name. You quick response will be highly appreciated.
    Thanks,
    Kuldeep Joshi

    Hi,
    Thanks for your reply.
    In detail, the scenario is like I have created an Open Hub. Its working fine. Now I am planning to execute this open hub using process chain and for that I have to define the file output on application server along with logical file name (using tcode FILE). The logical file name contains two variables (defined in FILE) i.e. z_dept and z_fiscperiod.
    Filter value in DTP ( I will read these values from Ztable using routine )
    Dept = R&D
    Fisc period = 004/2009
    Variables defined in tcode FILE:
    z_dept for Dept
    z_fiscperiod for Fiscal Period
    Logical file name : <z_dept>_<z_fiscperiod>.csv
    Now the challenge is to populate filter values in these two variables so that the filter value can be used for naming the output file.
    My last option is to read/update SAP standard table used for storing variable values (i.e. PARAMVALUE)
    Please let me know if you can help me in this issue OR is there any standard method/FM to populate value in these variables
    Thanks,
    Kuldeep

  • Problems using a php include file with an Add-on Domain.

    Hello,
    I am having an issue getting a php include file to work with a new add-on domain I am working on getting up and running.
    This include file is one that supplies the rest of the php code to a contact form page.  It works as it should for my original domain, same file no difference.  I made sure that the files hosted on the remote server had all read, write, execute permissions turned on.
    I have tried putting the include file in several different locations as a test, such as:
    I don't remember the exact name of the include file at the moment, as I'm at work so I will designate it below as 'includefile.php'.
    file path for add-on domain - ../public_html/lorentzpainting/includes/includefile.php
    alternatives I tried moving the file to - ../public_html/lorentzpainting/includefile.php
    When none of those options worked, I tried just pointing the path towards other places on the server that have the include file such as:
    ../public_html/includes/includefile.php
    ../public_html/includefile.php
    What can I do here?  Should I just give up on using the include and put all the code back in the page?  Doesn't seem like it should be this complicated, it works perfectly fine for my other site.. and still does.
    Thanks ahead of time to those who may assist me.

    here is the contents of the include file:
    <?php
    if (isset($_SERVER['SCRIPT_NAME']) && strpos($_SERVER['SCRIPT_NAME'],
    '.inc.php')) exit;
    // remove escape characters from POST array
    if (PHP_VERSION < 6 && get_magic_quotes_gpc()) {
      function stripslashes_deep($value) {
        $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
        return $value;
      $_POST = array_map('stripslashes_deep', $_POST);
      // assume that there is nothing suspect
        $suspect = false;
        // create a pattern to locate suspect phrases
        $pattern = '/Content-Type:|Bcc:|Cc:/i';
          // function to check for suspect phrases
      function isSuspect($val, $pattern, &$suspect) {
        // if the variable is an array, loop through each element
        // and pass it recursively back to the same function
        if (is_array($val)) {
          foreach ($val as $item) {
            isSuspect($item, $pattern, $suspect);
        else {
          // if one of the suspect phrases is found, set Boolean to true
          if (preg_match($pattern, $val)) {
            $suspect = true;
    //check the $_POST array and any subarrays for suspect content
    isSuspect($_POST, $pattern, $suspect);
        if (!empty($_POST['url'])) {
            $suspect = true;
        if ($suspect) {
            $mailSent = false;
            unset($missing);
        } else {
        //process the $_POST variables
        foreach ($_POST as $key => $value) {
            // assign to temporary variable and strip whitespace if not an array
            $temp = is_array($value) ? $value : trim($value);
            // if empty and required, add to $missing array
            if (empty($temp) && in_array($key, $required)) {
                array_push($missing, $key);
            } elseif (in_array($key, $expected)) {
                // otherwise, assign to a variable of the same name as $key
                ${$key} = $temp;
        //validate the email address
        if (!empty($email)) {
            // regex to identify illegal characters in email address
    $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/';
    //reject the email address if it doesn't match
    if (!preg_match($checkEmail, $email)) {
        $suspect = true;
        $mailSent = false;
        unset($missing);
    //go ahead only if all required fields OK
        if (!$suspect && empty($missing)) {
    //initialize the $message variable
            $message = '';
    // loop through the $expected array
            foreach($expected as $item) {
    // assign the value of the current item to $val
                if (isset(${$item}) && !empty(${$item})) {
                    $val = ${$item};
                } else {
    // if it has no value, assign 'Not selected'
                    $val = 'Not selected';
    // if an array, expand as comma-sparated string
                if (is_array($val)) {
                    $val = implode(',', $val);
    // add label and value to the message body
      $message .= ucfirst($item).": $val\r\n\r\n";
    //limit line length to 70 characters
        $message = wordwrap($message, 70);
    //create Reply-To header
        if (!empty($email)) {
            $headers .= "\r\nReply-To: $email";
    // send it
        $mailSent = mail($to, $subject, $message, $headers);
        if ($mailSent) {
    // $missing is no longer needed if the email is sent, so unset it
            unset($missing); echo('Thank you for contacting Common Wealth Web Solutions');
    ?>
    <!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>
    </body>
    </html>

  • Error-Receiver File Adapter using Variable substitution when file is empty

    XI Experts,
    We are on PI 7.0, SP14.
    We are using variable subtitution to get the filename from source message. This works fine as long as we have data in the payload for filename element. But we have a scenario where we don't have to create file when certain condition does not exists in source message so in the message payload filename element will not exists in such condition and file will be empty and we should not create file.
    Parameter in the communication channel for Handling empty message is "Ignore".
    Does anyone knows how to handle this scneario. We don't want to default any file name in the message mapping if source file name element does not exists.
    We are following getting error in the Adapter engine.
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file
    Thanks
    MP

    You can implement this by writing the module to throw an exception or whatever method you want to execute.
    If you don't want to receive an error message then module is suitable for you.
    Gaurav Jain

  • Blank Lines at end of file when using Variable Substitution in File Adapter

    Hi all,
    I'm using variable substitution in a File Adapter, it's refers an element of message, like:
    filename    payload:MESSAGE_INTERFACE,1,FILENAME,1
    The variable substitution is working right, but it's append a BLANK LINE at end of file.
    Anyone knows how to solve this problem ?
    Thanks in advance.

    Hi Regis,
    I suppose you're using content conversion?
    if so try adding
    <b>endSeparator</b> = '0'
    to your last element
    this will delete the default line break at the end
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • How to include a file as variable in %@ include file tag.

    Hi,
    I have a interesting problem here, how can I include a file in <%@ include file tag. where the include file path is a variable. I am trying to implement the following statement.
    <@ include file="<%=headerLogic_template %>">
    where headeLogic_template is a variable which contains the actual path of the include file.
    Thanx,
    Ramana.
    email:[email protected]

    Please note that you can not write anything else between the quotes nor for page specification or parameters.
    BAD EXAMPLE!!
    <% for (int i = 0; i < 20; i++) { %>
    <jsp:include page="included.jsp" flush="false">
      <jsp:param name="apa" value="prestring_<%=i%>"/>
    </jsp:include>
    <% }BAD EXAMPLE!!

  • How to using variable in log file name on ODI 10.1.3.5?

    Hi,
    how can i put a my variable into my log file name?
    now I use this syntax --> ExRate_<%=odiRef.getSysDate("MMddyyHHmm")%>.log.
    But I have a variable for example #server, the value = "oracleProd" and i want to put the variable value into my log file name.
    so the result that i want to get is --> ExRate_oracleProd_<%=odiRef.getSysDate("MMddyyHHmm")%>.log
    so how can I apply the variable value to my log file name? I try using odiRef.getSessionVarList(#Month) but it didn't work.
    Thanks.
    Regards,
    chris
    Edited by: 877142 on Aug 3, 2011 9:36 PM

    hi,
    You can by
    ExRate-#server-<%=odiRef.getSysDate("MMddyyHHmm")%>.log
    Note that I have changed the underscores to dashes. This is because ODI will assume that this is a wildcard/escape character.
    Hope this helps!!
    Bos

  • XI 3.0 File receive comm.channel using variable for folder/file name schema

    Hi,
    I prepared a integration message to produce .txt file output of message.
    I prepared message successfully, it's running properly and producing .txt file.
    My problem is to set .txt file name.
    I must set file name using by some information in .txt file.
    I must get some part of the first line of .txt to set filename.
    I declared a variable to do it.
    How can i set referance of variable?
    payload:..?
    Thanks.

    Hi,
    this blogs might be helpful:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID0935780750DB11281184595516315205End?blog=/pub/wlg/13704
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID0935780750DB11281184595516315205End?blog=/pub/wlg/2664
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID0935780750DB11281184595516315205End?blog=/pub/wlg/1888
    http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
    Regards
    Patrick

  • Design view + stylesheet on include file

    I'm building a site that uses server-side include files. I
    refer to CSS class names in these include files, but the actual
    stylesheet link is on another page. In design view, the editor does
    not reflect what is in the stylesheet, making it difficult to
    visualize and edit.
    Is there a way to have the editor recognize the stylesheet
    globally for the project? I don't want to put redundant stylesheet
    include statements on every include file just to have the editor
    work properly.
    - James.

    On Thu, 31 Jan 2008 15:55:22 +0000 (UTC), "Diodeus"
    <[email protected]> wrote:
    > Is there a way to have the editor recognize the
    stylesheet globally for the
    >project? I don't want to put redundant stylesheet include
    statements on every
    >include file just to have the editor work properly.
    Apply a design-time style sheet. Press F1, in the index,
    find:
    Design-Time style sheets, using
    Gary

  • Sometime dreamweaver updates included file path somtime not

    Hi,
    I use server side include file in Dreamweaver. Sometimes I
    move the included file to another folder, dreamweaver updates all
    the links that use that file. But sometime not.
    I need to know why sometimes not, and why dreamweaver updates
    just some link but not all the links.

    RunRunforest posted in macromedia.dreamweaver:
    > Hi,
    Howdy,
    > I use server side include file in Dreamweaver. Sometimes
    I move
    > the included file to another folder, dreamweaver updates
    all the
    > links that use that file. But sometime not.
    >
    > I need to know why sometimes not, and why dreamweaver
    updates
    > just some link but not all the links.
    I have no answer (nor have I seen this symptom), but have a
    suggestion
    that may/may not help.
    You might try rebuilding the site cache prior to moving the
    file(s).
    Also, are any of these links embedded in JavaScript? I don't
    know
    whether DW updates those links or not - just a wild guess.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Code hints don't work - include files using a variable

    In Dreamweaver CS 5.5 code hints didn't work properly.
    DW would not look at my code and find the include files and look at the functions inside them when using a variable to make an absolute path, which is the best way to include files in PHP (its faster and more reliable on your web server)
    Here is an example:
    ======================================
    public_html/util/util_index.php
    $DIR_MAIN            =dirname(dirname(__FILE__).'../');
    require_once "$DIR_MAIN/init.php";
    my_function(#CODE COMPLETE DOES NOT WORK HERE
    public_html/init.php
    $DIR_INCLUDE=               "$DIR_MAIN/inc";
    require "$DIR_INCLUDE/common_functions.php";
    #set up environment variables
    #connect to the database
    #etc
    public_html/inc/common_functions.php
    function my_function(param1, param2, param3) {
    =======================================
    Has this been fixed in Dreamweaver CS6 or should I wait until CS7?
    Until this works, I prefer Notepad++

    I made a full SQL Developer installation with Java included, so I suppose that the included version is used.
    After a problem with the German Version I tried to switch to English Version by using the hint:
    link: 1.5.4 export insert statements
    I changed the content of sqldeveloper.conf and now again the code templates (strg-shift-t) don't work!!!
    (I already rebooted and set the accelerators to default, but it didn't help now.)
    This is the content of my sqldeveloper.conf now:
    "IncludeConfFile ../../ide/bin/ide.conf
    AddVMOption -Dapple.laf.useScreenMenuBar=true
    AddVMOption -Dcom.apple.mrj.application.apple.menu.about.name="SQL_Developer"
    AddVMOption -Dcom.apple.mrj.application.growbox.intrudes=false
    AddVMOption -Dcom.apple.macos.smallTabs=true
    AddVMOption -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true
    AddVMOption -Dsun.java2d.ddoffscreen=false
    AddVMOption -Dwindows.shell.font.languages=
    AddVMOption -XX:MaxPermSize=128M
    IncludeConfFile sqldeveloper-nondebug.conf
    AddVMOption -Duser.country=US
    AddVMOption -Duser.territory=US
    AddVMOption -Duser.language=en
    "

  • CSS giving different results when defined locally, and when defined using an include file.

    In my experimental photo album page I originally defined the
    styles in a
    separate .CSS file. However this appeared to be incompatible
    with the
    requirement to have the session_start (); statement at the
    start of the file, so
    I then defined the styles locally. Now I have found that a
    style which gives
    padding to the right of an image no longer works in IE6,
    although Dreamweaver
    shows the expected result.
    I have made two very simple test files to demonstrate this:
    http://localhost/Corybas/Cydalba/Test/Test_page_8[1
    http://localhost/Corybas/Cydalba/Test/Test_page_8[2
    In Test_page_8[1].htm styles are defined by the include file
    ../Spl2.ccs, which
    is included using the following statement in the head:
    <link href="../Spl2.css" rel="stylesheet" type="text/css"
    />
    The include file reads:
    /* Test.css for Cydalba project */
    .img_left { float:left; border:none; padding-left:0;
    padding-bottom:0;
    padding-top:0; padding-right:10px; }
    p { font-family: "Times New Roman", Times, serif; color:
    #f00000;
    margin-bottom: 0.25em; margin-top: 0px; border: 0; }
    In Test_page_8[2].htm styles are defined locally, using the
    following lines at
    the start of file:
    <style type="text/css">
    /* Test.css for Cydalba project */
    .img_left { float:left; border:none; padding-left:0;
    padding-bottom:0;
    padding-top:0; padding-right:10px; }
    p { font-family: "Times New Roman", Times, serif; color:
    #f00000;
    margin-bottom: 0.25em; margin-top: 0px; border: 0; }
    </style>
    With IE6 Test_page_8[1] gives the expected padding between
    the images and the
    adjacent text, but Test_page_8[2] does not. The para
    definition appears to work
    correctly in both cases.
    Can anyone explain this?
    Clancy

    Hi Rob,
    I am making a wild guess here...the reason could be that the internal tables or variables declared as part of Global data (if any) must be refreshed in your FM code.
    Regards,
    Sumant.

  • Variable interplay between include files and parent files?

    How can I define a variable in a parent file which is then
    used in some
    logic in an include file? For example, if I have -
    <?php
    $foo = 1;
    ?>
    <?php require_once('foo.php'); ?>
    and in foo.php, I have -
    <?php if ($foo == 1) { echo "FOO"; } ?>
    it doesn't seem to work. Am I testing improperly, or what?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================

    Mine, too. But when you don't know what you are doing,
    sometimes the 'proof
    of concept' tests you design are a bit off-kilter, doncha
    know? I can only
    guess that i was suffering from that.
    I'll verify that I correctly reported this and post back....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Gary White" <[email protected]> wrote in message
    news:[email protected]..
    > On Wed, 9 May 2007 20:26:02 -0400, "Murray *ACE*"
    > <[email protected]> wrote:
    >
    >>Yeah - of course, I changed everything about it, too!
    >
    >
    > I'm still bewildered by what caused the problem. If I
    have two files,
    > first (includevar.php) like this:
    >
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    > "
    http://www.w3.org/TR/html4/strict.dtd">
    > <html>
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    > <title>Variable in an Include Test</title>
    > <meta http-equiv="imagetoolbar" content="no">
    > </head>
    > <body>
    > <p><?php
    > $x='This is $x defined in includevar.php';
    > include 'foo.php';
    >
    > print "$y";
    > ?></p>
    > </body>
    > </html>
    >
    > And foo.php like this:
    >
    > <?php
    > $y='This is $y defined in foo.php';
    > print "foo.php says $x<br>\n";
    > ?>
    >
    > The output I get is:
    >
    > foo.php says This is $x defined in includevar.php
    > This is $y defined in foo.php
    >
    > Clearly, the variable defined in the parent file is
    recognized in
    > foo.php and the variable defined in foo.php is
    recognized in the parent
    > file. Hence my bewilderment.
    >
    > Gary

  • SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?

    I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
    Can I use variable in the filter value?
    string fileName = "Policies.doc"
    SPSiteDataQuery spQry = new SPSiteDataQuery();
    spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"

    If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
    spQry.Query = "<Where>" +
    "<Eq>" +
    "<FieldRef Name=\"FileLeafRef\"/>" +
    "<Value Type=\"Text\">" + fileName + "</Value>" +
    "</Eq>" +
    "</Where>";
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • White lines generateds in a File Adapter when using variable substitution.

    Hi all,
    I have been a problem in File generated by XI, my File Adapter is using variable substitution with reference to a field of my message type. Because it, the files generated has white lines in top of file.
    What can I do to not apears these lines ?
    Thanks

    Regis,
    Try to give a more detailed description of your problem otherwise I don't know who's gonna answer...
    Alexx

Maybe you are looking for

  • Why can't I print a PDF as a PDF?

    Hi, I'm trying to use some features in the print dialogue of Acrobat Pro 9 (split the document onto multiple pages). The problem is that I have to save it as a PDF. But if I want to call the action "Save as Adobe PDF" in the print dialogue I get the

  • No accounting document generated during MIGO

    Hi, While making good receipt of a purchase order, no accounting document were generated because of authorization. After giving authorization, the user cancelled good receipt, in this time accounting document were generated. After that the user made

  • Reg:Soap,RFC,MDM

    Hi All,    The existing interface is, The webservice(Soap) is being triggered and it is being sent to RFC(Synchronous) flow. Now the requirement is changed to, the response message alone  needs  to be sent to Soap as well to MDM paralley Could anyone

  • Dynamic text feild

    works when exporting and publishing but when i "put" the file on my dreamweaver site it wont show up online. why is this happening and what should i do to fix it. this is the code i used according to a flash book with step by step sorrta stuff... tha

  • Error Log View in Warranty Claim Transaction

    Hi, I am using Transaction WTY to create a Claim. During creation, I am getting an error. But upon clicking the "Error" button, the display box that will give the details of error is not appearing. Likewise, I used F4 in the Field "Defect Code" in T