Name-Of-This-Template Function?

I have a template called, for example "pineapple.cfm". I want
to use the file name of the template in the template text.
So that I can write things like <CFIF Name(ThisTemplate)
Is "pineapple.cfm">.
But what is the correct syntax (instead of
Name(ThisTemplate)) for getting that file name?
Thanks
Frank
Beginner (with respect to this issue)

And your solution doesn't effectively do that. Does it?
Yes, it does. I will maintain that
<CFIF getFileFromPath(expandPath(cgi.script_name)) Is
"pineapple.cfm">
effectively answers Frank41's requirement, namely
"I have a template called, for example "pineapple.cfm". I want
to use the file name of the template in the template text.
So that I can write things like <CFIF Name(ThisTemplate)
Is "pineapple.cfm">.
Suppose incl_page.cfm is included in page.cfm. Then
getFileFromPath(expandPath(cgi.script_name)) will return page.cfm
and getFileFromPath(GetCurrentTemplatePath()) will return
incl_page.cfm. It's all about what you want. Since Frank41 mentions
nothing about an included page, I assume the default, that is, that
there is none.
addendum: Have you already sussed out my "may be so"? You
seem to ignore the fact that there is more than one possible answer
in your "included" scenario.

Similar Messages

  • Windows 7 or Windows Server 2008 R2 domain join displays error "Changing the Primary Domain DNS name of this computer to "" failed...."

    Hi,
    Windows 7 or Windows Server 2008 R2 domain join displays error "Changing the Primary Domain DNS name of this computer to "" failed...."
    DC:windows Server 2008 R2
    Domain functional level:Windows Server 2003
    When Winxp join domain, have no this error message.
    I checked http://support.microsoft.com/kb/2018583?wa=wsignin1.0 does't work.
    There have 3 suggestion in this article:
    1.The "Disable NetBIOS over TCP/IP" checkbox has been disabled in the IPv4 properties of the computer being joined.
    Doesnt's work.
    2.Connectivity over UDP port 137 is blocked between client and the helper DC servicing the join operation in the target domain.
    On my DC, I run netstat -an, reslut as below:
     UDP    192.168.20.3:137       *:*
    3.The TCP/IPv4 protocol has been disabled so that the client being joined or the DC in the destination domain targeted by the LDAP BIND is running TCP/IPv6 only.
    We are not using IPV6.
    This server recently updated from Windows Server 2003 to Windows Server 2008 R2. Before upgrade, when Win7 and Win2008 join this domain, also have the same error message.
    Please help to check this issue.
    Thank you very much.
    BR
    Guo YingHui 

    Hi Guo Ying,
    I have faced this critical error which makes over-writes the host names in the domain when you join.
    For example: Already you had a host name called as PC.domain.com in the domain.com Domain.
    When you try to add the another host name called as PC in the domain.com Domain, it doesn't give you the duplicate name error on the network it does over-write the existing host name called as PC.domain.com & it will add the new host name into the domain.
    Host name which got over-written will get removed from the domain. I faced this issue in my project. My DPM host name got removed from the Domain & new host name got joined into the domain which halted my backups for one day.
    Final Resolution is as follows:
    You need to start the dns console on the DC & drop down the domain name.
    Select the _msdcs when you click on _msdcs it will show the Name Server's list on the right hand side.
    You need to add the Domain Naming Master under the _msdcs or add all the domain controllers which you had.
    After you add the Name server's try joining the PC OR Laptop to the domain which is successfully joins it.
    Regards
    Anand S
    Thanks & Regards Anand Sunka MCSA+CCNA+MCTS

  • Function module to get the name of all the function module used

    I want to populate a internal table with the name of all function module used in the submitted program?? Is there any function module which return the name of all the function module used?

    Hi Priya
    Try this one RPY_FUNCTIONMODULE_READ.
    Ranga

  • THE DETACH FROM TEMPLATE FUNCTION IN DREAMWEAVER CC DOES NOT SEEM TO BE FUNCTIONAL Can you please explain.

    The detach from template function in Dreamweaver CC does not seem to be functional
    Can some explain.
    Bruce K.

    Hi Lalita
    Yes you are correct, I TRY THE Modify -> Templates -> Detach from Template.     I have built over 50 websites with this method using Modify -> Templates -> Detach from Template in DW CS5.5
    After a save a page to a template for future ref.
    I create a new page using this temp. but can not use the Modify -> Templates -> Detach from Template. The Detach from Template is not functional. It is there but when I mouse over its not operative.
    Does DW CC need update maybe.
    Thanks
    Bruce

  • How to view technical name of a planning function in IP?

    Hi,
    I have 2 aggregation levels created with 2 planning functions by someone else.
    I want to view technical name of that planning function so that I can include it in my WAD template.
    Please provide the info.
    Thanks & Regards,
    Rashmi.

    Hi Rashmi,
    In the Planning functions tab you click on the button right side of the window.
    Then you will get a window where you can select the columns to display. Pull the technical name window to display columns.
    Then you can see the technical name of that planning function.
    Regards,
    Ravi Kanth

  • Dynamically pass Table name, Column Name and rownum to function

    Hi Guys
    I wanted to pass the table name, column name and rownum to function and get the relevant value for it. Please guide me to achieve this task
    Thanking You
    Regards
    Lakmal

    Thanks,
    Here is my test function
    CREATE or replace FUNCTION GET_COLUMN_VALUE (tab_name VARCHAR2,column_name VARCHAR2) RETURN varchar2 AS
    strsql varchar2 (500);
    ColVal varchar2;
    BEGIN
    strsql:='select '||column_name||' from '||tab_name|| ' Where rownum = 1' ;
    EXECUTE IMMEDIATE strsql into ColVal;
    RETURN ColVal ;
    END;
    Message was edited by:
    Lakmal Marasinghe

  • ORA-04091: table name is mutating, trigger/function may not see it

    Hi,
    I have a row level before update trigger written on a table A which calls a procedure to undergo some processing. Procedure has some select queries against table A and it inturn causes the following error.
    ORA-04091: table name is mutating, trigger/function may not see it
    To overcome this I have used a combination of PL/SQL collection types (nested tables based on the following definition TYPE t_table_a is table of A.colname%TYPE index by binary_integer;), a row level before update trigger and statement level after update trigger. The mutating problem is fixed, but to update one row of data it took around 3 min and I am wondering if its the problem with PL/SQL tables I have used.
    In before update trigger I am storing the unique id's which needs to be updated into the PL/SQL table and in the after update trigger I am looping through the PL/SQL table and peforming the rest of the processing by calling in the procedure.
    Can anyone help how to minimize the run time of this process or if any other better solution exists?
    Thanks for the help

    Triggers raise the mutating table issue, because else they could be used to create endless loops. If you work around the mutating table issue, then you should make sure not to create an endless loop yourself. This would be possible.
    You description also seems to imply something like this.
    Without code it is impossible to say something specific.
    - Do you initialize your collection in a before statement trigger?
    - Is your looping mechanism somehow broken?
    - Do you update the same table again and again and again?

  • DO YOU KNOW THE NAME OF THIS CHIP?  NEED HELP! ASAP

    hello
    I would like to find out the name and it's function for the chip i had found from my previous powerbook g4 from 12.1". it was placed on top of the logic board and the numers/letters written on it was as listed below:
    ZU310N699MGNA
    I2C:M-DASH2EUR01
    U01M089.00
    1307556-6D
    i'm trying to see my parts and would like to find out ASAP.
    please HELP!
    many thanks,
    kittilove
    ps. i'll be happy to send a pic of that chip - please email me!

    Welcome to the discussions, kittilove.
    A search in Google for "U01M089.00" brings up this site as the only result:
    http://www.class-ic.com/parts/s9783.html
    They are a distributor of electronic components. There's an email address on the page, so maybe you could give them a shout to see what the chip is.
    Searches for the other strings don't give any results.

  • If I have a temp1.dwt.php with 60 files on it and one editable region, how apply to this template a

    if I have a temp1.dwt.php with 60 files on it and one editable region, how apply to this template a new temp2.dwt.php with same one editable region same place, without need to create new files and copy / paste editable region contents???
    eg I have a 3-region layout(template) with one editable region with html tables and want to convert it to:
    3-region layout(template) with one editable region with DIVs
    editable region contents all files remain the same...
    well?
    dw cs6 and dw cs4

    Name your editable regions the same in the new template as they were named in the existing one.
    Look at the code in the old template.  Find all regions like this -
    <!-- TemplateBeginEditable name="whatever" -->
    Make note of the name.  Ensure that all corresponding regions in the new template have the same name as they did in the old template.
    Then do a site-wide Find and Replace to find the old template's file name, and replace it with the new template's file name.
    if the old template is templ.dwt and new templ.dwt.php???
    Find SITE-WIDE "templ.dwt" and replace with "templ.dwt.php".

  • Name of column to function

    Can I refer name of column to function oblicz pasted below?
    How can I do this?
    nazwa - name of column from table pracownicy witch some float variables
    PS:thanks 4 every help.
    Greets Mike.
    ------begin function-----
    create or replace function oblicz (nazwa varchar)
    return number
    is
    l number(2);
    begin
    select avg('nazwa') <----- in here!
    into l
    from pracownicy;
    return l;
    end;
    --------end function--------
    Message was edited by:
    axis_81

    Aren't the two exactly the same? No:
    declare
      l number(2);
    begin
      execute immediate 'select avg(empno) into :1 from emp' using l;
    end;
    Error at line 2
    ORA-01745: invalid host/bind variable name
    ORA-06512: at line 4
    or
    declare
      l number(2);
    begin
      execute immediate 'select avg(empno) into :l from emp' using l;
    end;
    Error at line 2
    ORA-01006: bind variable does not exist
    ORA-06512: at line 4

  • I have transefer function like (1/(s^2+s+​5)) and i have a square wave input , i want to use this transfer function with this input to see the output , how can i do that , with example please.

    i need to know also how to represent this transfer function in labview, try to send me example. answer me at my mail

    "st" wrote:
    > answer me at my mail
    give a valid e-mail first, and your name, we don't like to help anonymous
    people
    > try to send me example.
    how much do you pay ?
    > i have transefer function like (1/(s^2+s+5)) and i have a square wave
    > input , i want to use this transfer function with this input to see
    > the output , how can i do that
    First you have to know what you are doing, like an engineer : you have a
    Laplace, continuous time transfer function but LabView handles discrete
    signals only. Use matlab/simulink if you want to simulate continuous time
    systems easily...
    If you definitely want to use LabView, the first step is to discretize your
    continuous-time transfer function, i.e. decide a sampling rate and convert
    it to a "z transfor
    m". Then you can directly use the "IIR Filter.vi" as I
    said earlier.
    Philippe Guglielmetti - www.dynabits.com me at my mail

  • Find Userexit name based on Exit function module

    Hi All,
    Is there any way to find the userexit name based on the function module.
    My exit function module is EXIT_SAPLATPC_001. I want to find the exit name.
    Appreciate your help.
    Thanks,
    Jaffer Ali.S

    Hi
    This is the Exit Name: ATP00001 for the Exit FM you have given. I took the package name this exit FM is stored in the Attributes of FM in SE37. In the search criteria of SMOD,after hitting f4..and selecting Information System, I gave the package name...and it gave me the exit name.
    P.S: The above method may sometimes lead to giving in more than one exit as result.
    Vishwa.

  • The term 'new-object' is not recognized as the name of a cmdlet, function, script file, or operable program.

    I have a script that runs well the vast majority of the time.  On occasion I get an exception.  I would appreciate any insight as to why it fails on occasion.  I can't understand why the new-object cmdlet wouldn't be recognized:
    Message: The term 'new-object' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    Source: System.Management.Automation
    StackTrace:    at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context)
       at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName, CommandOrigin commandOrigin, Nullable`1 useLocalScope)
       at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource)
       at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe, CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst, CommandRedirection[] redirections, ExecutionContext context)
       at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
       at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    Here is the script I am running:
    param([string]$endpoint)
    $ErrorActionPreference = "Stop";
    try
     [System.Reflection.Assembly]::LoadFile("D:\dotNET_Apps\dotNETCOExBatch\DotNETCOExBatch\bin\DotNETCOExBatch.dll")
     $schedule = new-object DotNETCOExBatch.CallService
     $reply = $schedule.CallWebService($endpoint)
     if ($reply)
      $host.setshouldexit(0)
     else
      $host.setshouldexit(8)
    Catch
     $nl = [Environment]::NewLine
     $evt=new-object System.Diagnostics.EventLog("Application")
     $evt.Source="BatchPowerShell"
     $infoevent=[System.Diagnostics.EventLogEntryType]::Error
     $batchException = $_.Exception
     $logMessage = " "  
     while ($batchException)
      $exMessage = $batchException.Message
      $exStackTrace = $batchException.StackTrace
      $exSource = $batchException.Source
      $logMessage += "$nl $nl Message: $exMessage $nl $nl Source: $exSource $nl $nl StackTrace: $exStackTrace" 
      $batchException = $batchException.InnerException 
     $evt.WriteEntry(" Error starting or process cancellation of $endpoint $logMessage",$infoevent)
     $host.setshouldexit(15)

    Hi,
    Please close your current powershell console, and start a new Window, and then check the result.
    Like David replied, this is a strange issue, hard to find the cuase, but I will report the issue, hope
    someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Regards,
    Yan Li
    TechNet Subscriber Support
    If you are
    TechNet Subscription
    user and have any feedback on our support quality, please send your feedback
    here.
    Cataleya Li
    TechNet Community Support

  • Problem - Class containing template functions

    Hi everyone,
    I've written a simple class (not template), containing one template functions, like te following one:
    class MyClass
    public:
    template <typename T>
    typename T::_ptr_type DoSomeThing(int a, int b);
    When I am within a function and I need to call DoSomeThing, I have no problems if I declare a local variable of class MyClass, but I get the following compilation error:
    Error: Unexpected type name "ThirdClass" encountered
    when I use a pointer or a reference to MyClass that is declared elsewhere in the code.
    The following is a sample code that returns me an error:
    int OtherClass::MyFunc()
    m_pMyClass->DoSomeThing<ThirdClass>(10, 20);
    In the above function m_pMyClass is a member variable of OtherClass pointing to an instance of MyClass and ThirdClass is a valid class name (visible to the function).
    Does anyone know why I got the error ?
    Thank you,
    Massimo

    You need to use the syntax:
    m_pMyClass->template DoSomeThing<ThirdClass>(10, 20);
    Really, exactly like I wrote it ;)
    Josh

  • EPM Report/Input template & functions not working

    Hello Experts,
    We are working on SAP BPC 10 NW SP 04, and EPM Addin SP 16.
    We have an input template/report where- in rows we have 3 dimensions and 3 in columns. In template we have used EPMDimensionoverride function for row and columns both, also extensively used EPMDimensionPropertyValues for filters of other dimensions.
    We are facing different types of problems with this report:
    Scenario1 – The template does not gets opened. We have “Refresh while opening the sheet” option in use. While opening this template, the refresh doesn’t happen and it says “Process in progress.Please wait”. And the Excel is hanged out totally.
    Scenario 2 – In the filter part where we have used EPMDimensionPropertyValues functions. Sometimes it shows the dropdown list and sometimes not. IF we select any member in the filter, the other dropdown’s become disabled, but after refresh they are working. If the property values exceed 255 limit, we specify a range in the EPMDimensionPropertyValues function. But sometimes this is also not working. If we specify range it doesn’t populate the data also plus the dropdown created is blank. One point noticed was that when the sheet is protected it displays some dropdown lists, but when we unprotect the sheet all the dropdown’s are listed. We are facing quite weird behavior while using this function.
    Research a lot on this, Tried processing all dimensions, took them offline then online, Log out from the sessions and then re- logged in. Run the program UJA_REFRESH_DIM_CACHE, but no luck!
    I copied the same environment into new. and executed the template. There it is working fine! except the EPMDimensionPropertyValues function. Dont know what the exact cause is???
    Regards,
    Priyanka

    Hi Priyanka,
    Based on your description it's not possible to help you... You have some complex template with a lot of formulas. And you have issues. Try to isolate the issue on some simple template and provide the screenshot with the formulas explanation.
    Vadim

Maybe you are looking for