Select Template at run time?

I have a site that contains content for multiple languages.
Each
language currently has it's own set of templates and this
works well in
conjunction with Contribute.
However, some page are shared between the different
languages, usually
those containing ASP.NET code.
To cut a long question short, is it possible to determine
which template
should be used by a page when that page is viewed in the
browser? I have
a script that creates a variable contain a value of the
browser language
or read a pre-defined language value from a cookie. I'd
really like to
use this variable to dynamically force a page to use a
specific template.
e.g. say have 2 templates: us.aspx.dwt and fra.aspx.dwt. can
I influence
the following line (from a page using a specific template) to
select the
template at run time?
<!-- InstanceBegin template="/Templates/us.dwt.aspx"
codeOutsideHTMLIsLocked="false" -->

No. DW templates only work inside DW. They are strictly
design-time tools
that affect only local files.
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
==================
"Kevin Blount" <[email protected]> wrote in
message
news:ebdl6s$huh$[email protected]..
>I have a site that contains content for multiple
languages. Each language
>currently has it's own set of templates and this works
well in conjunction
>with Contribute.
>
> However, some page are shared between the different
languages, usually
> those containing ASP.NET code.
>
> To cut a long question short, is it possible to
determine which template
> should be used by a page when that page is viewed in the
browser? I have a
> script that creates a variable contain a value of the
browser language or
> read a pre-defined language value from a cookie. I'd
really like to use
> this variable to dynamically force a page to use a
specific template.
>
> e.g. say have 2 templates: us.aspx.dwt and fra.aspx.dwt.
can I influence
> the following line (from a page using a specific
template) to select the
> template at run time?
> <!-- InstanceBegin template="/Templates/us.dwt.aspx"
> codeOutsideHTMLIsLocked="false" -->

Similar Messages

  • How To... Change the Data Type for a SELECT-OPTIONS at run time.

    Hello,
    I am trying to restrict the values available for entry into a SELECT-OPTIONS at run time depending on user input.
    The logic is as follows. The user has two input fields. A PARAMETER field which has the type RSDIOBJNM and allows them to choose an InfoObject. And the user has a SELECT-OPTIONS field to allow them to select the Characteristic values for that InfoObject.
    I would like the following example to be possible:
    The user enters 0MATERIAL into the PARAMETER. When the user clicks on the SELECT-OPTIONS control code will derive a list of possible options the user can enter in the SELECT-OPTIONS. In this case only values found in the master data or at least no values greater than 18 characters.
    I have looked at the following function module SELECT_OPTIONS_RESTRICT and this do not appear to be helpful as they only restrict on the signs allowed for the values (unless I misunderstand, it is a complex function module!).
    The code I have so far is (thus the user enters a InfoObject into p_char1 and the select options so_char1 should only accept active values of that InfoObject):
    declaration of variables for user interface
      DATA c_char(32) TYPE c.
    declaration of count variable
      DATA i_count TYPE i.
    declaration of user interface
      SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
        PARAMETERS: p_ipack TYPE RSLOGDPID.
      SELECTION-SCREEN END OF BLOCK a1.
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
        PARAMETERS: p_char1 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char1  for c_char NO INTERVALS.
        PARAMETERS: p_char2 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char2  for c_char NO INTERVALS.
        PARAMETERS: p_char3 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char3  for c_char NO INTERVALS.
      SELECTION-SCREEN END OF BLOCK b1.
    Is what I am trying to do possible???
    Thanks for any help. Ross.

    You really want to restrict possible values of a select-option based on another field, not change the length of type of the select-option field, right?
    Here is what you do:  Code a custom F4 value help for the select-option at event AT SELECTION-SCREEN ON VALUE REQUEST FOR..  The first thing you do here is read the value of the parameter field (p_ipack in your example).  You can use function module DYNP_VALUES_READ.  Based on this value, you can propose values for the select-option fields.  Note that the use can still enter whatever s(he) wishes in to the select-option field without pressing F4. In this case, you will have to code some input validations taking into account the value in the p_ipack field.

  • Find Unicode for selected Symbol at run time

    Hi,
    I have one InDesign document which is having lots of Symbols with applied font Symbol Medium.
    While manually selecting the perticular symbol  we can find the releted Unicode in Glyphs.
    But I want to do this task by using script means I want to find the unicode for perticular selected symbol at run time without any manual intervention.
    please help me out.
    Regards,
    Raj

    Hi Jongware
    thanks for reply,
    as you mentioned  app.selection[0].contents.charCodeAt(0) is giving only the unicode value of Special caracters like emSpace, EnSpace, NewLine, etc.
    But we are expecting unicode of characters like µ (Unicode: 00B5) , λ (Uncode: 03BB).

  • How do i get the data present in the selected row at run time in Multicolumn list box?

    Hi,
    I am using multicolumn list box with three columns and i am having OK button.
    If the user selects particular row and then press ok then that row datas(that 3 values) has to get update in the file.
    Can u tell me how to get that selected row values alone and also how to append the list box value at run time?
    Thanks
    Meenatchi

    You can simply use the Value property of the MLBox to get the row selected & wire it to the Delete from array function with the Itemnames of the MLBox as the Input & Output of the Delate from array function.
    See the attached VI.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    Dbl-click Row to get Data & Delete.vi ‏41 KB

  • Template builder - run time error '429'

    Hi all,
    I'm getting a Visual Basic "run-time error '429' ActiveX component can't create object" in two separate environments. One is using Word 2007 the other Word 2003. The error occurs when I try to log into PI Publisher from Word. I can't find any info on this error. They are both 64 bit machines and I have the .NET 2.0 for 64 bit installed. Has anyone seen this?
    Thanks!
    Patrick

    Correct, you do not need Oracle client software installed. But, where does Desktop get installed? Under C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop. One of the folders therein is DotNetInstallFiles. Then, consider this:
    "With OLE DB .NET, applications can access the Oracle database from any .NET programming language.
    The provider now supports 64-bit Windows natively, including Windows x64 and Windows Itanium."
    I would venture to say that older versions of Desktop were probably not tested on 64-bit PCs because who uses Office on 64-bit Windows? Even in the certification guide, it states that all possible combinations of J2EE compliant engines, databases, OS, etc have not been tested. Digging into the BI installed files, you see ADO-related files.

  • Based on the input parameter can OBIEE select table at run time

    For e.g if we select monthly from the drop down then the same report must fetch data from monthly report
    and at the same time if a persons selects daily then the same reprot must fetch data from daily table.

    Let's assign a presentation variable to the drop down values i.e. var_Status
    Now in functionality of the column that you want to change it's functionality dynamically depends on your selection... write this formula
    case when '@{var_Status}' = 'Daily' then Table1.Col1 else Table2.col2 end
    Because of this.. we can't have dynamic column heading for this column.
    One more approach is: Same Presentation variable but with Sectional Guided navigation properties.
    see here: http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-selecting-reports-from-dashboard-prompts-and-guided-navigation-sections/
    You have to develop 2 reports for this..
    Regards
    Kishore Guggilla

  • Call a VI whith the Run-Time Engine in TestStand

    Hi,
    I'm using TestStand 4.2.1. On the same PC I've installed LabVIEW Run-Time Engine 2009 (9), 2010, ...
    On another PC I developped a series of VI with LabVIEW 2010. My client want VI in the 2009 version, that's why I use a Run-Time Engine.
    I placed an action step, selected my VI and the adapter was not able to load the VI (as viewed in the attachment).
    Before I had selected the right Run-Time Engine (in Configure -> Adapters), and I saved the VI in the 2009 version (instead of 2010).
    What is the problem ?
    Another problem is that in an other VI I use an XML library (the default in LabVIEW), How convert the entire library in the 2009 version ?
    Thanks for your help
    Attachments:
    Erreur VI.png ‏975 KB

    Hi,
    One way to check if vi's are compiled in LV2009 is to select menu item 'View VI Hierarchy' from the top level vi.  Then select 'View>Full VI Path in Label' and 'Always Show Labels'.  Check that none of the VI's are in the LV2010 paths.
    To fix, you may have to create a project (File>New Project from your top level VI - Add the VI to the project when prompted).  Right click on the Build Specifications and create a new 'Source Distribution'.  Check that under 'Additional Exclusions' that VI's in vi.lib, user.lib, and instr.lub are not excluded.  This should package up all of the VI's into a library that will run in the LV2009 RTE.
    Thanks,
    Jim

  • How to Hide the Parameter field at run time....

    Hi,
    I have a parameter field which behaves differently depending on the User logged in.
    It has the LOV coming from following SQL.
    SELECT customer_name FROM Cust_mast;
    If the user = 'INTERNAL' then the Where clause will be
    WHERE cust_id in('DELL', 'SBC', 'BANK')
    Else there will be no WHERE clause or the parameter field
    should be hidden in the parameter form.
    So my questions are:
    1) How to hide the Parameter field during Run time?
    OR OR OR
    2) How to change the LOV select statement during Run time?
    Thanks.
    Ram.

    Hi Ram,
    Is there any way to play with the sql query SELECT using DECODE ?I'm not sure of this part, maybe someone else can suggest a way.
    However, what you want can be done in 2 other ways:
    1. Build 2 reports. Both reports will just be duplicates of each other, only difference being that the 'LoV where clause' will be different. Now you can fire the appropriate report in many ways. For example, if the customer is alreay logged inside your custom application, and therefore you already know whether the user is internal of external, you can design your button or link which launches the report to contain logic such that one of the 2 reports is fired depending on who the user is.
    1. Use a JSP parameter form, not a paper parameter form In this case, just build an HTML parameter form in the web source of your report. Use Java logic to populate the LoV drop-down list. When you have to launch the final report, just launch the paper-layout of the report. For example (you will have to modify this):
    <form action="http://machine:port/reports/rwservlet?report=ParamForm.jsp+..." name="First" method="post">
    <select name="selected_customer" onChange="First.submit()" >
    <option value="">Choose a Customer Name
    <rw:foreach id="G_cust_id" src="G_cust_id">
         <rw:getValue id="myCustId" src="CUSTOMER_ID"/>
    <rw:getValue id="myCustName" src="CUSTOMER_NAME"/>
    <option value="<%=myCustId%>"><%=myCustName%>
    </rw:foreach>
    </select>
    </form>
    In the code above, you will have to make sure that your report's data model defines 2 CUSTOMER_ID's (like CUSTOMER_ID_INT and CUSTOMER_ID_EXT). These 2 will be internal and external Cust ID's. Use Java logic to show one of them.
    Navneet.

  • Select serial comm port in sub vi during run-time

    Hi, would like to be able to select the comm port (serial RS232) in sub vi to use in main vi during run time. How can I do this? Have tried and failed, for on startup an error occurs because I have not selected a port yet. An example would be invaluable! Thanks alot, Madri

    Hi Madri !
    What you could do is to intercept the com errors, and open a configuration vi either if there is an init error or if the user has pressed a "Change port" boollean (or menu...). Do not forget to close the previously opened serial port, and to open/init the new one. I have attached a small example of this idea.
    Of course com errors can have various origins, and do not require always to change the serial port. So, you have some additional work to do.
    Hope this helps
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Select_port.vi.zip ‏12 KB
    Com_with_serial_init_vi.vi.zip ‏13 KB

  • How to select a sub image in run time

    Hi ,
    how can i select sub image from an image on panel in run time ?
    OR
    how to draw a rectangle(with dashed lines) on the panel and from its dimension i'll get the sub image ?
    THANKS

    BufferedImage.getSubImage(....);

  • Run time error while login to RTF Template

    Hi,
    I am trying to create a sample report in BI Publisher. but while login into RTF Template I am getting below error.
    Please rectify this problem?
    Run time error '429'
    Active x component can't ceate object
    help me out

    Runtime Errors         DYNPRO_FIELD_CONVERSION
    Date and Time          07.05.2010 08:49:15
    ShrtText
         A conversion error occurred.
    What happened?
         The current screen processing was terminated, since a situation
         occurred from which it could not continue processing.
         This is probably due to an error in the current screen of the ABAP
         program.
    What can you do?
         Make a note of the actions and input which caused the error.
         To resolve the problem, contact your SAP system administrator.
         You can use transaction ST22 (ABAP Dump Analysis) to view and administe
         termination messages, especially those beyond their normal deletion
         date.
    Error analysis
         The program flow was interrupted and could not be resumed.
         Program "SAPMJ1IFN" tried to display fields on screen 1210. However, an
         error occurred while this data was being converted.

  • Set value TextTemplatingFileGenerator to custom tool property of a t4 template file at run time(programmatically) in an MVC Project

    In Solution Explorer we can set the Custom Tool property for a t4 Template file in the Properties window. But can anybody help me doing the same at run time?
    I want to assign the value TextTemplatingFileGenerator programmatically to the Custom Tool Property.
    Thanks in advance...

    Hi suraya,
    Since the issue regards MVC and website deployment. I suggestion you post the question in the ASP.NET forums at
    http://forums.asp.net/. It is appropriate and more experts will assist you.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • No 'order by' selection for cluster tables generates run-time

    Hi together,
    Basically I want to use a "select...order by" statement with table mhnd.
    Since mhnd is a cluster table you can not use "...order by".
    So, I use a select ... into table. I then sort this table and finally read it (index = 1)
    Unfortunatly this approach generates huge run-time.
    What can be done to minimize run-time?
    Thanks for any help

    Hi Gerd,
    Which cluster table you are using and what`s data you wanted? Maybe there are some FM to extract data from it.
    regards,
    Archer

  • Run-time error when saving Web Template

    I recently got upgraded to Windows XP SP2 from Windows 2000.  Since then, when I make a change to a Web template, it can be as simple as check a Web Item property, and then try to save it, I get an error.  A window (called SAPBWWebAppDesigner) pops up with the message "Run-time error '-2147417848 (80010108)  Automation error.  The object invoked has disconnected from its clients". 
    I then get thrown out of WAD and have to log in again.  has anyone encountered this behavior? 
    Any suggestions would be greatly appreciated.

    hi,
    I had a lot of troubles with WAD and there are two causes of those:
    1. bad installation of SAP GUI and its add-ons (see note 197460)
    2. bugs in WAD
    Check note:
    857360 and those (but they are pretty old) 815044, 318248, 647405, 573436,
    Conclusion from above notes is to install latest GUI patch - talk about this with your basis staff (I think most recent for v6.40 is patch 11
    Regards,
    Andrzej
    ps. in case of errors always make a search in service.sap.com/notes on keywords
    Message was edited by: Andrzej Krysiuk
    Message was edited by: Andrzej Krysiuk

  • Template Builder not found followed by Run-time error '429'

    Hello,
    I am having problems with BI Publisher.
    I am running the application on a Windows 2003 server via a Citrix connection using Word 2007 (SP2) (multilingual French/English). On this forum, I have seen numerous threads about this type of error but none seems to be working for us.
    Symptoms:
    I installed BI Publisher with admin rights (account A) and it works fine using this account
    I copy the TBCrosstab.dot, TemplateBuilder.dot, WordAnalyzer.dot in another User Profile "%USERPROFILE%\Application Data\Microsoft\Word\STARTUP" (Account B)
    All macros are enabled in account B
    The Add-ins menu shows but when I click on Connection I get the Template Builder not found error followed by Run-time error '429'
    I uninstall BI Publisher from Account A and install it using account B
    It now works fine with account B but I get the error messages in account A...
    Does BI Publisher work using multiple accounts on a single machine?
    Thanks

    Did you find a solution to this problem?

Maybe you are looking for

  • The range of Airport Extreme is shrinking or so it seems.  How can it be improved?

    My Airport Extreme is behind one wall but the signal strength has become weaker over time.  Is there any way to improve the signal strength? Thanks. Jay

  • In PM or QM modules how to link the smartforms to standard transections.

    Hi ABAP gurus,      i am facing the problem how to link the smartforms to Standard transections, like      QGA3 in this T-code i am give the Inspection lot no only, then this Lot number go to the smartforms     it will pick the total data relavent to

  • Setting hostname in Mail !

    Hi, Not sure if this is a Mail or my gateway issue: The issue is that when I send an email, and then look at the header of that message, it says "Received from unknown" Here is a snippet of the header: Received: from unknown (HELO p3presmtp01-06.prod

  • 40GB Windows Directory - How to cleanup?

    It seems our Citrix XenApp server 6.0 with Windows 2008 R2 x64 is running out of space on a 60GB system drive. I have quite a few other servers with the same size root drive and do much heavier lifting than this server with plenty of space available

  • Battery size issues with X201

    Hi, I bought Lenovo X201 around 6 months back. I see that the Battery for my laptop is not completely fit into the slot. it's actually shaking. does anybody have similar problem? or only me? how can avoid this? And also display for the laptop will be