Custom variables

Hi guys,
I am trying to setup more complex variable. Not sure how to do this
Here is what I am trying to do, I would like to do some math calculation. For example: 10/5 = 2
In captivate 5, you can go to "Variables" and create variables.
Say var1 = 10 and var2 = 5.
How do you set up another variable that do the math calcuation? (ie. var_result = var1/var2)
and then how do apply that var_result on stage?
Also is it possible to do that with system variables. For example using quiz system variables to do the calculation.
Thank you very much in advance.

Hello,
Glad you found it. In this blog postings I did some calculations, perhaps they could help:
Quiz showing elapsed time
Creating a Game Results Board
Lilybiri

Similar Messages

  • 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.

  • Custom variable of filename, omitting certain characters

    I am interested in creating a custom variable where I can edit the document name.  For example, my document is called "Myfilename_001.indd".  I wish to omit everything except for the "001" because that is the version number of my file, and I want that to be the output.  Is this possible somehow?  Or would I need a script to help do this?  Ideally, it would be nice to do it in a way where only the last three characters of the document, sans extension, are the output (if this makes any sense)
    Thanks in advance
    -Tommy

    Hi Tommy,
    This is currently not possible via the Text Variables in InDesign.
    With scripting you can do it but it won't remain live, i mean it would work for the current name of the document, but if you change the document you might need to run the script again beacuse that way you would be putting plain text in there.
    WIl doing this just once solve your problem?
    -Javed

  • Problem with Customer variable

    hi
    from improper installation of coldfusion "Customer variable
    in the registry I changed the configuration to the cookies but I
    have error in event log
    "An I/O operation initiated by the Registry failed
    unrecoverably. The Registry could not read in or write out or flush
    one of the files that contain the system's image of the Registry. "
    and my registry is full, this key
    HKLM/Software/Macromedia/coldfusion/CurrentVersion/clients
    and each time you restart the coldfusion the old entered the
    back regitre
    thank for help
    patrick

    Could it be that the code doesn't find any value in ZCURR_PM_T table for the specified input region?

  • How do I...Mimic Replacement Path with Query using Customer Variable Exits?

    Hello SDN:
    We are on BW 3.5 SP16.
    We are currently using a replacement path Query(RP) with variables
    to populate a variable in another Query(T).
    The problem we are having is with performance.
    The entry of variables in replacement path Query(RP) is optional (This is necessary there cannot be required values)
    When results from Replacement Path Query are small performance is fine. (e.g. 10 seconds)
    When results from Replacement path query are large performance suffers. (e.g. 1+ minutes)
    Users are free to leave the replacement path variables empty resulting in a large set of data to be replaced. This is the worst performance case.
    We would like to discover a way to conditionally execute the replacement path query. That is if users do not enter values for the replacement Query(RP) variables do not execute the replacement path query(RP).
    Does anyone know if this is possible within reason and in customer exit space?
    We have reviewed the situation from all angles and the requirement for the replacement path FUNCTIONALITY and the freedom for the user to leave variable values blank remains.
    I've been searching and reading SDN and SAP notes for about a week and do not find threads which address this situation.
    We are also exploring Customer variable exits to mimic replacement path functionality
    (different topic subject="How do I...Mimic Replacement Path with Query using Customer Variable Exits?")
    Any help will be appreciated
    Many thanks
    David Schuh

    My appologies-I posted this message with the wrong subject. I will repost it with appropriate subject.
    dave schuh

  • Custome variable exit for fiscal year/period

    Hello BW Gurus,
    Q1[1,2,3] Q2[4,5,6] Q3[7,8,9] Q4[10,11,12] quarterly periods
    I have a custom variable exit as shown for fiscal year period
           IF LOC_VAR_RANGE-LOW+4(3) =< '003'.
              L_S_RANGE-LOW+4(3) = '001'.
           ELSEIF LOC_VAR_RANGE-LOW+4(3) > '003' AND
                                              LOC_VAR_RANGE-LOW+4(3) =<'006'.
              L_S_RANGE-LOW+4(3) = '004'.
           ELSEIF LOC_VAR_RANGE-LOW+4(3) > '006' AND
                                                LOC_VAR_RANGE-LOW+4(3) =< '009'.
              L_S_RANGE-LOW+4(3) = '007'.
           ELSE.
              L_S_RANGE-LOW+4(3) = '010'.
           ENDIF.
    Now this works fine to give me the Current Quarter ....say if user puts 005/2007 i get the data Current quarter as [4+ 5] i.e. April and MAy data. Now for <b>Previous Period</b> I gave an offset as -3 to -1 inorder to get data for Q1[123] but the requirement is changed and I want the same time period i.e. [1+2] and not the entire quarter since the Current Quarter calculates only for 4 and 5.
    I hope u are getting my point....please give your suggestions will reciprocate with lots of points

    Hi gaurav,
    Basically If I am selecting period 005 I am getting the data for 4 and 5 as Current Quarter i.e. April is the starting period of that Q2.
    Similarly the previous Quarter should also give me data for period 1 and period 2.
    Right now the offset I gave is -3 to -1 on my custom variable so i am getting data for the entire previous quarter which is Q1[1,2,3] but in reality i just want data for period 1and period 2.
    Can you please help me in this
    Appreciate your concern
    Thanks

  • Year To Date custom variable not working

    Hi all,
    I have a key figure called "balance". I'm trying to restict by fiscal year/period by using a custom variable, processing by user entry/manual and accepting a range. The output is showing only values for the period in the lower range. What could I be doing wrong
    For example when I enter 02/2006 - 04/2006, it is displaying value only for 02/2006 and not the cumulated value. I did confirm there is data in the cube.
    Please advise.

    Hi Anita,
    I am not sure about your scenario, but we I know for sure that key figure such as Balance cannot be for a range of time. This could only be at a point in time.
    As an example, I can say the balance I have now is 20 or balance at last month was 15. Similarly I cannot say that balance between last month and current month is x.
    This is provided, the key figure balance is used in the same context.
    Naveen.A

  • Customized variable for Bex

    Hi Gurus;
    I am using BI 7.0. My client wants a customized variable for 0CALMONTH with 2 dialog boxes in the selection screen saying "From month" and "To Month". When you input months, say; 06.2008 in "From Month" and 08.2008 in "To Month", the output which will come is data from all the months between 06.2008 and 08.2008. The 2 dialog boxes are important in this screen. I know. it can be done through interval option in BI 7.0, but the dialog boxes doesn't appear in the first screen of the Selection Screen (Like in 3.x).Is there a way to fulfill my client's requirement? Please provide me a step - by - step guide if possible.
    Regards;
    Sumanta

    Sumanta,
       Could you please clarify
    1 ] whether you are using BEx Analyser or Web queires to execute the report? Does your query has only the custom variable as it selection parmeter?
    2] Is your Custom variable(with Interval) for 0CALMONTH is defined as mandatory / optinal ?
      If you are using Web queries and you variable is defined as optional, then there is setting that you need to do on the web template that you are using.
    Choose you web template on the properties tab> Choose Web Template parameters>under the behaviour section ,choose check box for Display variable, as the default is off. This means that if you have Custom variables that are optional on you BI query will not be display as selection screen.
    Hope this help,
    Cheers,
    Balaji

  • Custom variables in PKGBUILDs

    I've read alot that the devs advise against defining your own custom variables in a PKGBUILD file incase the devs add a new variable to the internals of makepkg. But, what if there was an arch dev community supported convention about custom variable definition that was documentated? For example, the docs could say "All custom variables defined in a PKGBUILD should be prefixed with two underscores, e.g. __mycustomvar. This way, there could be custom vars and arch devs wouldn't use any __vars for new features of makepkg.
    Just an idea,
    -wd

    dp wrote:
    $origver or $__origver ?
    i dont think, it is needed to use non-human_readable__ for PKGBUILD, as it is really elementar (it's not OO for building a whole architecture on it)
    my suggestion would be to reserve some variables for some cases
    e.g. if pkgver is different than the original version of the tarball, then let's use origver to refer to the original version (the case, when tarball version is 1.0-beta3 and pkgver should be 1.0beta3)
    one other is origname where the original name of the pkg is meant (the one the tarball is called after it)
    I think that is a great idea, since those are the exact instances I run into regularly when creating my own packages, and spawned me to post.

  • Formatting of Custom Variable (Price Value)

    Hi Guru's,
    I'm using one custom variable to store the Value (Price) .
    The Value is with 9 digits after the Decimal Place, The Domain was created by me.
    The Variable type is 20 Characters with 9 Decimal Places.
    I'm using this variable in displaying the Price Value.My Problem the value is apppearing as
    123456.000000000.
    But i want to display the Value as 123,456.000000000.
    I tried to use the FM Conversion_Exit_Alpha_Input, but i'm getting the Dump(Run time Error).
    How to get the Formatting done????
    Thanks in advance.
    Adi.

    use
    WRITE var CURRENCY <currency key of type waers>
    or WRITE var CURRENCY 'USD' "or any other currency type
    кu03B1ятu03B9к.

  • Custom variables and tops

    Hi
    I have some doubt about the cloning.what is the purpose of creating the custom tops and the custom variable in the oracle apps 11.5.10.2/please provide me the steps to create the custom top and the custom variable and also say me if we we have performed cloning will the custom tops and the custom variables will remain as such or we have to recreate them or its not necessary.please provide me the details
    Regards
    Aram

    Aram,
    Please see old threads, you will find all the details/docs/links in those threads.
    Custom Top
    http://forums.oracle.com/forums/search.jspa?threadID=&q=custom+top&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Custom Variables and Scorm Compliance

    In order to implement a special grading scheme for my project, I'm utilizing custom variables for my captivate presentation. How do I ensure that my variable usage is SCORM compliant?

    Mike,
    We do that all the time in my company. We never use the Captivate SCORM publish option but simply publish to a standard SWF.
    We then add JavaScript calls within Captivate to handle the SCORM functions (e.g. navigation, unload page etc.) and build our SCORM manifest in Reload. The JS SCORM support files are the standard apiwrapper.js found on the ADL webpage and a custom JS file that contains some extra functionality for our LMS.
    One of the reasons why we are doing it this way is that 99% of our courses consist of multiple chapters. This way we can easily control the entire course structure in the manifest we build in Reload and avoid using the Aggrevator ;o)  Another reason is that we almost never use the Captivate quizzing features but instead use a custom Flash based quiz in our courses.
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

  • How to create a custom variable for a Label?

    i need my label to store a string variable in it, do you know i can create a custom variable for it.
    i mean for example if it's name is "StoredString" i can access it in my code by "label1.StoredString" just like "Label1.text" or something like that.

    Thanks for pvdg42's help.
    Hi soorena12,
    Based on your issue, I suggest you can try the pvdg42's suggestion check your issue in your side.
    If it still could not help you solve this issue, I suggest you can tell me which kind of application you create the label in the VS IDE?
    What language you use to create for your application?
    If you have any update message about your issue, please tell us.
    Best Regards,
    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.

  • Crystal Report Server XI, adding a custom variable destination

    Hello and thanks for any help on this.
    I am relatively new to CR Server and have a need to create and use a custom variable in a scheduled report.  Basically I want to place this variable in the report destination email body.
    It looks like there are some pre-built variables to choose from like:
    %SI_STARTTIME%
    %SI_USERFULLNAME%
    Is it possible to create new variables and use them on the report destination section?
    Thanks again,
    Eric

    You may visit this URL for reference:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    Go to BusinessObjects Enterprise SDK >> Java developer guide>> Viewing Reports and Documents using URLs
    Thanks

  • How to add custom variable on approval form?

    Hi,
    I am tring to do multi-level approval for the role assignment using my custom approval form.
    For that i have created a WF and this workflow calls approval subprocess which intern uses the Custom Approval form.
    In WF i am passing newly selected role as variable to my Approval Subprocess. Now Approval Subprocess assigns this to the first level manager by displaying this new role on approval form. Manager1 is able to see this new role and approves role assignment.
    Now this Role has Approver(Which was defined during the role definition). so it automatically goes to RoleApprover for approval using custom Approval form. Now the problem is i am not able to see my custom variable value in the Approval form for RoleApprover. its showing it as null. But where is in case of manager approval it is showing.
    Can anyone through somelight on this to display a WF variable(newrole) in Approval form.
    The one reason that i could think of is RoleApprover approval process is triggered by Configurator as WFOWNER hence all the session variables are killed.Is there any workaround?
    I appreciate your help.
    Thanks
    Kris

    I got the solution, using the session. Thank you.

  • Using the Set Session Info to populate Custom Variable

    Hey everybody, I'm trying to setup a Set Session Info step so when a caller presses 1 for instance to go to a specific department I can go into the database and see how many callers pressed a certain button.
    Here's what I've done so far, I've setup a Session called session_info with the value of null.  At the very beginning of the script it shows session_info = Get Contact Info --Triggering Contact--, Session)
    Then in the menu field when a caller presses 1 I have the Set Session Info step with the Session being session_info and then in the Context tab I have "_ccdrVar3" for the name and "1" for the value.
    The script doesn't fail it's just not populating any Custom Variable with any data. 
    Also I've tried using the Set Enterprise Call Info and using a value of 1 and then Call.PeripheralVariable3 for the name.  Not sure what the proper way to do this is.  Anybody have any ideas?

    Hi
    You don't need a session var.
    You just need to use 'set enterprise data' to set a call.peripheralvariable to what you like.
    The data goes straight into the contactcalldetail table.. You can check it by doing:
    run uccx sql db_cra select * from contactcalldetail where customvariableX = 'yoursetting'
    Where 'yoursetting' is what you set the ent data to, and customvariableX is the var you use (e.g. customvariable3 if you use call.peripheralvariable3)
    Regards
    Aaron
    Please rate helpful posts..

Maybe you are looking for

  • Using airport time capsule to create an internet connected network from pre existing wifi network

    i bought an airport time capsule for college. I bought it to create a network for my dorm room so that I could take the pre existing wifi from the school and make my own mini network that I can hook my other stuff up to. Problem is that I don't have

  • My Blackberry Curve 8520 keeps giving me a white screen everytime there's one bar of battery left

    My phone keeps giving me a white screen whenever the battery is around 20%. I pulled out the battery and let it reboot itself, halfway through, the screen blanks out, but amazingly when I plug it in to charge it reboots fine without blanking out. I 

  • A bug is loose!

    I'm not sure what the problem is exactly, but since a recent update to the software in my iMac running Snow Leopard 10.6.5 (10H574); Time Machine has been going kind of nuts. I have been getting error messages: Time Machine (apparently isn't running

  • Transformation Routine

    Hi In my customer master data, I have a customer group field attached to each customer along with other fields/ attributes of customer. Now i have data going to a cube through a routine in the transformation, which works fine. Now i see a problem. A

  • Properties file - Planning v11

    Hi In Planning v9.2 we will have properties files created for each application (<App Name>.properties). Do we have similar property files in v11? Thanks Sethu