Conditional Header depending on a variable created by me

Hello.
My purpose is call a header dinamicaly once depending of a variable created by me. My problem is for each time a page breaks and the header is repeated my variable returns to 0.
Its any change to define one variable=0 and then change the value to 1 and the variable stays with value 1 until the end of processing?
This what i'am doing.
Defining Variable
<?xdoxslt:set_variable($_XDOCTX, 'first',0)?>
Conditional
<?if: xdoxslt:get_variable($_XDOCTX, 'first') = 0?>
<?call:Header?>
<?xdoxslt:set_variable($_XDOCTX, 'first',1)?> Its possible to keep this value until the end of processing. I only that if statment repeat once.
<?end if?>
<?start:body?>´
<end:body?>
Tks.
Edited by: user4256563 on 13/Abr/2011 9:18

Navigate to that workspace from 'teamcollab', then go to Settings --> Delete.
Thanks,
Jereen

Similar Messages

  • Modify the from header depending of destination domain in Exchange 2007

    Hello.
    I have an Exchange 2007 organization. One edge and 2 mailbox-cas-hub servers. I want to modify the "From" header depending of destination domain.
    For example, if the destination domain is @example.com and the sender is
    [email protected], the new sender must be changed to
    [email protected] . The user1 has both email address added as smtp address and @newdomain.com was set as primary address to respond and receive emails.
    I have tried with transport rule but I cannot create it, because I received an error when I want to modify the "From" value. The command and error message are:
    Command:
    New-TransportRule -Name 'Test' -Comments
    '' -Priority '0' -Enabled $false -From
    '[email protected]' -SentToScope
    'NotInOrganization' -RecipientAddressContainsWords
    '@example.com'
    -SetHeaderName 'From' -SetHeaderValue
    '[email protected]'
    Error:
    You can't set header 'From' with value
    '[email protected]'
    I have tried without "@" and only with the username, but I got the same error.
    I have been the New-AddressRewriteEntry option, but on this command I cannot set a specific destination domain, only it can set an internaldomain and externaldomain parameters.
    I would like to resolve this issue with Exchange 2007 tools or commands, but I guess this requirement can be done with a third-party tool, anyone knows any?
    Thanks and regards.

    I think what you're trying to do is pretty unusual, at least for Exchange. :-)
    I don't know of anything that would run on Exchange that would be able to do that, but I think you can do it with something like Postfix.
    http://www.108.bz/posts/it/conditional-address-rewriting-with-postfix/
    http://comments.gmane.org/gmane.mail.postfix.user/228099
    --- Rich Matheisen MCSE&I, Exchange MVP

  • Condition Type dependant on Pricing Date

    Hi,
    I want to know how to make a particular condition type dependant on pricing date. e.g We have a pricing procedure where a couple of condition types are only displayed, when I go to the header details in VA01 and put the pricing date manually in the Sales Tab.
    Thanks
    Amol

    Hi Amol,
          Go to V/06 and goto perticular condition type detailes screen, At bottom there is control data 2 in that there is field called 'pricing date' you enter "B" in that field, I think it will fullfill your requirement.
    If it is helpfull please reward me with points,
    Regards,
    Murali

  • Delete Condition Type Depending on Item category Va01

    HI all,
    I wan to delete condition record depending on item category. I have a good link from sap.This link explains how to hide the condition but i want the  delete the condition. was badly struck here.
    http://wiki.sdn.sap.com/wiki/display/ABAP/ManipulatingPricingconditionsdisplayinSalesdocumentwithUserExit-LV69AFZZ
    Regards,
    madhu
    Edited by: madhurao123 on Mar 24, 2011 2:19 PM

    Hi,
    We had a similar requirement once, and towards the end we realised that deleteing rather than hiding it was a bad idea.
    Think beyond the scope, that if a future sales order created with reference needs this condition record; manual entry will again be dependent on your pricing procedure and is a mess.
    But if you do want to delete it; go into debugging and decide which user exit you would want to use and delete that line of the condition record from XKOMV table for that Sales Order

  • How to populate the variable created in start routine to a field.

    Hi
    I have created a variable ZCUST in the Start routine and I have written some code to populate this value. Now there is a field in the update rules, Z_YTCUST. I want to assign the result of the variable created in start routine to this field. How can I go abt doin this? I have tried but for some reason the result shows 0.
    Thank you.

    Hi,
           Make sure the variable used in the start routine is a global variable. then assign the value u get it from the start routine in the update rule result field.

  • Is there a way to allow for two lines in "running header (character style)" text variable?

    In my "running header (character style)" text variables, some of the items are quite long and take up more space in my header than I have room for - because I have another "running header (character style)" text variable beside it - and I am trying to figure out if there is a way to force that text variable to go into two lines when it runs out of space.
    Does anyone know if this is possible?

    Sadly, only by adding a forced line break in the variable. Adobe’s engineers are unable to allow long variables to break at the end of a line. Sad, since this is a feature I remember from a Macintosh word processor I used in 1988.

  • VA02: protect a line in condition screen depending on a type condition

    Hi all,
    I need to protect a line in condition screen depending on a type condition
    using the transaction VA02.
    Does anybody know the user-exit to do this ?
    I thank you in advance.
    Best Regards.
    Paolo

    Hi,
    I believe you cannot do it on condition basis...unless if you want to modify standard sap code.
    In the condition type config V/06..In the "changes which can be made" section there is an input for manual entries...there you can give D to not allow to change the condition ...
    Thanks
    Naren

  • Variable created in MC (AS2)

    Hi there.
    I have a button on a movieclip that when clicked, will create
    a variable with a value. The problem is, I cannot seem to pass this
    variable and use on the _root. I have created the same but with the
    variable created on the _root and it works fine.
    I have tried using _root in various place on the code below
    but it returns 'undefined'.
    Any pointers on how I can access this variable on the root -
    see my code below
    Thanks a lot
    Tony Mead

    Thanks kglad. Although this does work (and the next bit is an
    oversight by me). I am actually creating the variable to act as a
    dynamic name for a movieclip that I can work with after the onPress
    action. This requires the variable to not be enclosed in"" marks
    but when I remove the quotation marks I'm getting
    undefined.
    Again, I have the very same thing and it is working on a var
    that I'm creating that is already on the _root timeline.
    Any clues?
    Regards and thanks again,
    Tony

  • Creating Mediator header properties or Mediator variables.

    I want to store values obtained from the synchronous reply from the service to some mediator properties or variables, so that next sequential service call can utilize the values from those variables.
    How do I add such a variable.?

    You need to store this value outside mediator, ex file and retrieve values. Mediator is not intended to store any values.

  • Pricing condition- Header

    Hi,
    I have a problem with a pricing condition. It is a the moment both a header and item condition but my customer want it to be only a header condition.
    I can not get this to work as it is a condition that is an automatic freight condition with different stages depending on the value in the order. There are an access sequence connected to the condition and according to that the item condition can not be removed.
    Is there anyone else who know how it could be possible to solve this? I want a condition to be automatic with stages depending on the order value and I only want to have the condition on header level.
    Thanks for the help,
    Ulrika Nilsson

    Please go to the pricing procedure screen (VOK0 transaction) You will see different pricing steps within the pricing procedure. Also you will see a column "Reqt" associated with each pricing condition.
    Identify the pricing condition type for automatic freight conditions and add a custom requirement" say for instance 699. Prior to this activity go to VOFM transaction -> Requirements -> Pricing and create a new routine 699. (may need access key)
    Once this routine is created and saved, 2 form routines will be created. Add the following sy-subrc statements as shown below and activate the program. Make sure the routines are added to the transport.
    FORM KOBED_699. "Header Pricing
    sy-subrc = 0. "successful
    ENDFORM.
    FORM KOBEV_699. "Item Pricing.
    sy-subrc = 4. "not successful
    ENDFORM.

  • New condition price depending on bill-to-party counrty

    Hi everybody,
    We are trying to create a new sales condition price that depends on the bill-to-party country. But we can't get it. The only country we can use is the Ship-to party country. Every country we select in the table for the condition refers to the Ship-to party country, not to the Bill-to party country.
    Who can help me?
    Thanks in advance

    Hi
    <b>You can add new field to field catalog with u r required  field , Then create condition table using that new field as follows..</b>
    <b>To add field into Field catalogue:</b>
    For example if you want to use field PSTYV ('Sales document item category') that is included in structure KOMP ('Pricing Communication Item') as a key for a condition table.
    When you create a condition table (Transaction V/03), however, the system does not propose the field in the field catalog.
    Prerequisites:
    For technical reasons, field PSTYV was included in structure KOMP, however, not in structure KOMG ('Allowed Fields for Condition Structures').
    To solve the problem, proceed as follows:
    1. Call up the ABAP Dictionary (Transaction SE11) and create data type ZZPSTYV. Choose PSTYV as a domain.As a short text, you can use, for example, 'ZZ - sales document item category' and as a field label, you can use the field labels of PSTYV.Save, check and activate your entries.
    2. Call up structure KOMPAZ in the ABAP Dictionary (Transaction SE11) in the change mode and make the following entry:
    Component   Component type
    ZZPSTYV     ZZPSTYV
    Save, check and activate the change you made.
    3. Note:Because of the change in structure KOMPAZ, field ZZPSTYV is now known in structures KOMG and KOMP because structure KOMPAZ is included in both structures.
    4. Call up Transaction SPRO. Navigate to 'Sales and Distribution -> Basic Functions -> Pricing -> Pricing Control' and execute 'Define Condition Tables'. Choose 'Conditions: Allowed fields' and include ZZPSTYV as a new entry.
    5. Note:Now you can use field ZZPSTYV as a key field when you create a condition table Axxx.
    6. Supply the new field you defined by including the following source code line in USEREXIT_PRICING_PREPARE_TKOMP:
                  MOVE xxxx-PSTYV TO TKOMP-ZZPSTYV.
    In order processing you find the user exit in Include MV45AFZZ, and in billing document processing you find it in Include RV60AFZZ.
    Consider that you can also use this note as a help if you want to use other customer-specific fields as key fields in a condition table.For header fields, use structure
    KOMKAZ instead of structure KOMPAZ and USEREXIT_PRICING_PREPARE_TKOMK instead of USEREXIT_PRICING_PREPARE_TKOMP.
    For more information, see Transaction SPRO via the path 'Sales and Distribution -> System Modifications -> Create New Fields (Using Condition
    Technique) -> New Fields for Pricing' and Note 21040.
    <b>
    To  creating a condition Table:</b>
    1) There are almost all the regularly used Conditon Table predefined in the system from 001 to 500.
    See what best you can use the Standard Tables to avoid further errors.
    2) In case you should define the new condtion Table,
    a) Goto TCode: V/03
    b) Give a Table any number from 501-999
    Press execute and reach to next screen.
    c) Check up whether  the field you are looking is already added in Field catalogue.
    d) Double click on the fields you want to make a Table..one by one. Note that the sequence here is important in higher hierarchical to lower..
    Eample : Sales Org, DC, Division, Customer and then Material etc..,
    e) After selecting, click on the Techincal View buttin (redone) and reach to next screen.
    7) Check which key  should be in header and which key should be footer. Use check and uncheck functionalities there..
    8) Once you are through with all the above steps ..click on generate button.
    Check the Table is generated or not.
    You can check it at V/04 or V/05 or in SE11.

  • Conditional Header and Footer description print in Report

    Hello,
    Is it possible to print different header or footer of a report depend on condition.
    My requirement to change the header and footer description on a fly depend upon the parameter passed to the report.
    Any soultion ...
    Sam

    hello samar
    of course this is possible. paint your first desidered header/footer, place it in frame and add format trigger on this frame to display it when you want it, otherswise return false. the same is for other possible headers/footers. then place all those frames on same position. look at conditions to display only one header/footer at a time :)
    or seccond (in case of simplier structure) is to place in header/footer only one bolierplate text with value f.e. &p_footer and then send value you want to see in footer n parameter p_footer ...
    hth
    Petr Valouch, Brainbench MVP for Oracle Programming, http://www.brainbench.com

  • Using conditional statements stored inside a variable

    I'm trying to store the body of different emails inside of my
    database to use in email sent with cfmail. The content of the
    emails has conditional statements using cfif and other variables
    based on a query running. If I set the content as a variable and
    then place that inside of the cfmail tag it does not process the
    cold fusion code. Is there a way that I can process this code so
    that the final output is what is placed within the cfmail tag or is
    it not possible to do what I'm trying to accomplish? Thanks in
    advance for any ideas.

    Here is a sample taken from the text file. The output created
    by the cfsavecontent tag is identical to the text file.
    Dear <cfif IsDefined(GetData.strFirstName) AND
    GetData.strFirstName IS NOT
    "">#GetData.strFirstName#<cfelse>Member</cfif>,
    Thank you for joining xxxxxxxxx. We're glad to
    have you as a member and appreciate your support. Your
    membership
    application has been processed and your member packet will
    arrive soon.
    Your new membership number is #GetData.strCustomerID#. This
    number is useful
    when buying product from our online store, renewing your
    membership or
    contacting us with questions or comments.
    <cfif GetData.ExpirationDate IS "9999-12-1">We are
    especially grateful for your commitment to xxxxxxxx
    through your Life Membership.<cfelse>Your membership is
    current through #DateFormat(GetData.ExpirationDate, "MMMM
    YYYY")#.</cfif>

  • Error when a TS step has a condition to check for custom variable. Variable is set on the collection.

    SCCM Version = SCCM 2012 R2 CU3
    Background
    I would like to setup some sort of safety check to help prevent accidentally sending and OSD out to all the servers managed by SCCM. The solution I am trying to use is making the TS do a check for a custom variable. If the variable is NOT set to TRUE
    then it should reboot the machine back to the currently installed OS.
    The variable is called "AllowOSD"
    AllowOSD is set correctly on my "Test Servers" collection
    I'm using the built in "Reboot Computer" step in the TS
    The condition on the Reboot Computer step is very basic - "Task Sequence Variable AllowOSD is not equal TRUE".
    I am testing the TS on a VM guest (Hyper-V)
    I'm deploying via PXE for these tests...
    The Issue
    As soon as the TS starts I get the annoyingly generic 0x80004005 error - smsts.log posted on github -
    smsts.log-A
    Possibly related issue:
    I have a vbscript that prompts for, and sets, the computer name. This works fine if placed after the format disk step, but if I place it before the format disk step then I get error 0x800700A1. If I format the internal HD first then I don't get an error
    and it all works fine.
    smsts.log posted on github - smsts.log-B
    Be aware VM_1 and VM_2 have unformatted disks (vhdx). I don't want them to be formatted before checking that the task sequence should really be running in the first place. As already mentioned, I am trying to prevent someone wiping out a bunch of servers
    by accident.
    My Task Sequences are based on the defaults created by the wizard. Here are the step I'm using...
    * Reboot if AllowOSD is not TRUE
    Restart in Windows PE
    * set Computer Name
    Partition DIsk 0 - DIOS
    Partition Disk 0 - UEFI
    Install Operating System
    Apply Windows Settings
    Apply Network Settings
    Setup Windows and Config Manager
    * = steps I have created.
    All other steps are defaults as created by wizard.
    Please note the "Restart in Windows PE" step does a conditional check on "_SMSTSInWinPE" without any errors. it is looking like the use of custom variables is not supported until the local HD is formatted and mounted. Can
    anyone confirm this behaviour, or what I can do to get around this problem.
    I have tried using a vbscript but triggering a reboot from VB does nothing, hence using the Reboot Computer step in the TS.
    Thanks
    "Well I'm all out of ideas." - 85

    As others have stated, your options are limited the moment you rely on PXE and WinPE but I think all you need to do is refine your collection target a bit.
    Why not instead of deploying your TS to All Systems (which is what I'm guess you're doing) and trying to put a condition in, deploy to a collection that is based on a workstation collection then include unknown computers?  Then any "known workstation"
    will have a MAC stored and thus be permitted to use the TS, unknown machines will be as well ... but "known servers" will be blocked?
    COnsidering the PXE looks for permitted MAC addresses this should work (Ill try it in my own lab).
    Tested and verified:
    Simply create a collection with a parent collection of all systems.
    Add a workstation query:
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion LIKE "%Workstation%"
    Then "include" unknown computers.
    End result is any machine that has "server" in it's version that has already been deployed will not be able to use the deployment.  If you'd rather base existing computer on an OU or group membership just modify the first query how you see fit.
     This will let known workstations (or whatever) and unknown machines get deployed to ... but known machines NOT in that collection will be skipped.

  • Can we hide column in a query depending upon the variable selected

    Hi all,
    let us say my report have 10 column.
    now i am giving user option to select the values (let us say 'a' or 'b')
    columns must be displayed depending upon the value selected by user ..
    for example if user has selected 'a' then first five columns should be displayed..and if user has selected 'b' last five column should be displayed..(it will be OK even if we can hide the columns depending upon the selection )
    Is it possible in BEx...please let me know

    I did it sometime back. A bit complicated process.
    Create an infoobject, manually enter the values "keyfig1" and "keyfig2".
    Include this infoobject in the filters and restrict it using a "ready for input" variable.
    Now create two formula variables.
    Write a customer exit such that when you select "keyfig1", first formula variable's value should be set to 1 and other one's to 0.
    Then in the query create two calculated key figures, multiply both with the formula variable. Also supress column (all active value == 0).
    Then it will show the key figure which you have selected.
    Pravender

Maybe you are looking for

  • How Would you Know if Mountain Lion is Downloading?

    Hi. App Store had me update the info in the billing section which I did. When I updated it and click done it came back to the Mountain Lion page still with the icon Buy App. I clicked that for a second time but it said (something like) that I I've al

  • CD Eject sound when MBP comes out of sleep

    Perhaps this is typical - I'm a new convert from the PC world. But the only thing that I don't like about my new MBP is that the CD drive (when empty) makes the CD eject noise every time the machine comes out of sleep. Is this typical? What's it tryi

  • How is importance of PL/SQL today?

    Hi, I want to begin a commercial training that teaches me how to program an Oracle database in PL/SQL. This training lasts 12 months, and before I start it, I want to know what is the importance of PL/SQL today? Is PL/SQL still a modern programming l

  • Re: Call forwarding not working with subscription

    I just noticed the same problem today too. Calls are going to voicemail instead of ringing to my forwarded phone (I have a US/CA unlimited subscription) and I do use Skype on both Win7 computer and Android phone. note that the help on the feature cle

  • Skype can't connect with internet while the connection is fine

    I've installed Skype (version 7+) for my mac,  OS XYosemite 10.10.1. When I try to login with my microsoft account in the application, it says that there is no internet connecting, even if there is clearly is. At the same time I can login with my mic