Using context variable in formcalc scripting language.

Hi all,
         I wanted to know if it is possible to use context variables in formcalc. I wanted to use those variables in "if else" condition in formcalc scripting language. Please post the sample code also as i am new to adobe forms.
Regards,
Vinod

Hi ,
Each variable define in the context can be used on the layout of the form and/or in script linked to fields.
This can be done in formcalc or in javascript language , without any problem . You have only to acess the correct variable in the script.
For getting variable in a script you must define the complete name of the variable, example "Myform.Header.Data.Myvariable" get access to variable MyVariable define in the context under nodes Header/Data .
Hope it's help you
regards.

Similar Messages

  • FormCalc script language for calculating PV

    Greetings,
    I need to calculate a Present Value (PV) in a table for rent. I can not (after many, many tries) come up with the formcalc script language that mirrors the Excel formula my boss has used in a spreadsheet.
    I know the 'formula' is PV(n1, n2, n3), but that is apparently NOT what needs to be written as the script. Do I use ".rawValue" in writing this out? Do I use the ctrl+applicable cell in choosing a segment?
    My first example of needing to calculate this  is having a total amount for a year's rent, a discount rate of [user entered, example would be 5%], and a period of the term year minus 1 (so year 1 would be 0 or not used; year 2 would be 1, year 3 would be 2). This is what the Excel formula relates to, although it uses a negative (minus) in front of the year's rent amount.
    Writing PV(yramount,  discountrate, yr-1) doesn't do anything to create the answer.
    Do I write ...    $.rawValue = PV(yramount.rawValue, discountrate.rawValue, yr-1.rawValue) or ....
    I can't figure it out (and I've tried this formula every way I can imagine and I'm getting nowhere).
    I am also going to be calculating the Present Value of Total Lease Obligations each year (which is another oddity of  discountrate, yr-1, negative TotalLeaseobligation).
    Once I get 'row 1' calculating, the following rows will be added based on the number of term years, and the calculating will include percentage increases over the prior year along the way. I can't wait :-O
    If someone could please help me crack the "actually USING in a form the formula for Present Value)", I will be so very grateful. It is decidedly beyond my sub-novice attempts.
    Thank you!
    Shu

    Oh, my, thank you so much! It is truly baffling to me. I’ve attached my efforts for what it’s worth. I try to explain more below.
    I was basing my ‘assumption’ on this ‘formcalc information’ – but obviously I couldn’t do anything with it as it is too cryptic for a beginner.
    Here is the Excel formula used in the current spreadsheet:
    = PV($B$22,B$26,,-C28
    Where B22 is the Discount rate (e.g. 5%)
    B26 is a number representing the year number of the prior year in the Term (e.g., the first year pulls a blank cell, the 2nd year pulls “1”, the 3rd year pulls “2”)
    C28 is the Base Rent amount for the year being calculated, but shown as a negative (?)  [That number is calculated as a $/square foot * number of square feet]
    In my LCD form, I’m calculating in a table in which there is a header row, a footer row, currently 2 body rows, and I’m trying to get all the values to calculate based on information “provided above” in the form. The first challenge is the first row and I’ve gotten everything to ‘work’ except the “Total Base Rent(PV)” and the “Total Lease Obligation(PV)” the 3rd PV value is an arithmetic calculation between these results.
    Current Row 1 formulas:
    Base Rent: $.rawValue = NF3BaseRentPersf.rawValue * NF1SquareFootage.rawValue
    TI Costs: $.rawValue = NF14AnnDebtServTotal.rawValue
    Furniture Fixtures Equipment: $.rawValue = NF14FFETotal.rawValue
    Move Costs:  $.rawValue = NF14MoveCostsTotal.rawValue
    Total Lease Obligations: $.rawValue = Cell2.rawValue + Cell3.rawValue + Cell4.rawValue + Cell5.rawValue
    Common Area Costs: $.rawValue = NF4OpExPersf.rawValue * NF1SquareFootage.rawValue
    Utilities: $.rawValue = NF5UtilPersf.rawValue * NF1SquareFootage.rawValue
    Other Expenses: $.rawValue = NF6OtherPersf.rawValue * NF1SquareFootage.rawValue
    Total Operating Expenses: $.rawValue = Cell7.rawValue + Cell8.rawValue + Cell9.rawValue
    TOTAL Estimated Costs: $.rawValue = Cell6.rawValue + Cell10.rawValue
    Total Base Rent (PV): ______________________?
    Total TI & Other Costs (PV): $.rawValue = Cell14.rawValue - Cell12.rawValue
    Total Lease Obligation (PV): _______________________ ? (THIS -> doesn't work: $.rawValue = PV(NF15DiscountRate.rawValue,, -Cell6.rawValue)
    I'm sorry for being so naive with all this. We are gobsmacked (in a great way) with the possibilities of LCD-- IF I can just get the hang of this stuff.
    Here's the hierarchy for the table:
    and these are related hierarchy references (you can tell I haven't quite gotten the naming of objects down very well).
    AND my NEXT challenges: I am trying to make this a ?repeating row table? And will attempt to add an 'add row' button that will allow the addition of a row reflecting the number of years in the proposed term (from 1-10, usually). So I need the amount to sum in the footer as well as the couple of sums within each row. Starting with the 2nd year, the Base Rent and Operating Expenses amounts will be a factor of the prior year's amount * the applicable Escalation % (Base Rent Escalation or Estimated Annual Expenses Escalation) -- which is why I figured I had to go on and include the 2nd row to put those formulas therein. I am ASSUMING that when I enerate subsequent rows with the "Add Row" button (crossing fingers!) that the formulas will duplicate and the correct amounts will be reflected, including the right totals -- although for a 1-year term I'll need to figure out how to 'delete row' the 2nd row so the totals aren't ka-flooey.
    I am extremely grateful for your help in any way you can share. This is a lot of fun -- but I just don't speak the LCD language yet. Thus I flounder.
    Appreciatively,
    Shu
    p.s. I am not sure how to provide a copy of my actual form-in-progress. Much of what I'd written in reply was stripped out so I've come back in to edit and add what I'm able.Thanks again!

  • Using c++ variable in apple script

    Hi all,
    I am just calling the apple script from my indesign plugin.
    I need to pass the c++ variable to apple script for opening a file
    This in my apple Script which i have embedded in c++ code
    tell application "TextEdit"
    activate
    open "Users:User1:Library:Preferences:Adobe Indesign:Version 5.0:MathEQ.txt"
    end tell
    The filepath "Users:User1:Library:Preferences:Adobe Indesign:Version 5.0:MathEQ.txt" is stored in the C++ variable char* textFileName.
    I need to use the variable textFileName in apple script which has the path.
    How to go about it?
    Thanks
    Sakthi

    I have a similar problem trying to get data from any field into an AppleScript variable.
    Something like *set phoneNumber to cell "Phone Number" of current record* works fine if you are using the script from a layout that has this field on it.
    But I have a lot of fields on different layouts and I want to have access to all fields in the table, no matter what layout they are on, or what layout is currently active.
    And I want to do this without having to specify on what layout each field is located.
    In the past (FileMaker 6) I used something like *set phoneNumber to (cell "Phone Number" of current record of database 1)* but this is no longer working in FileMaker 9.
    So I was thinking to use something like *set phoneNumber to cell "Phone Number" of current record of table "Table Name"* but that doesn't seem to work.
    The only thing that seems to work is *set phoneNumber to cell "Phone Number" of current record of layout "Layout Name"* but as I said, I don't want to specify the layout for each field.
    Any ideas anyone?
    Message was edited by: khasmir

  • Using JSP variable inside Java Script's alert function.

    Hi Gurus,
    We are trying to use alert function with one of the string variables populated inside JSP code, but its not working.
    Here is the code snippet, please advice.
         <%
         oracle.apps.qot.util.RequestCtx.log("qotcustom.jsp",AOLMessageManager.getMessageSt(QotUtil.QOT_APPS_CODE, "XDPYY_DISC"));
         %>
         var alert_text="<%=AOLMessageManager.getMessageSt(QotUtil.QOT_APPS_CODE, "XDPYY_DISC")%>";
         alert(alert_text);
         Here in the first line we are using API to get text message defined in database, the line is getting executed properly and we could see output text message in debug log file, after this in the 4th line, we are assiging this string output of API to java script variable alert_text and further using alert function with the variable alert_text as argument. But alert function is failing, no errors are thown in debug log file.
    Please advice whether we are doing any thing wrong.
    Thanks in advance.

    What pgeuens means is that you can't mix javascript and jsp/java code in this way.
    ALL of the jsp/java code gets executed at the server end.
    This produces an HTML page (with embedded javascript) which gets sent to the client.
    The client then runs javascript code in response to events (onLoad, onClick, onChange etc etc)
    So in this case, the jsp:forward will always be executed, because as far as the server is concerned, the javascript is just template text.
    If you WANT to do a conditional forwarding on the server side you do it in java ie (horribly using scriptlet)
    <%
    if (testCondition){
    %>
      <jsp:forward>
    %<
    %>Or if you want to test what the client has entered client side, all you can do is submit the form, or navigate to a URL
    <script>
    function test()
    if(document.f.htemp.value=="true")
    alert("jus");
    else
    var s=document.f.htemp.value;
    alert(s);
    document.f1.action="success.jsp";
    document.f.submit();
    </script>You cannot run JSP code based on your javascript code.
    Java. Javascript. Not the same thing.
    Hope this helps,
    evnafets

  • ECATT 620 using structure variable in test script

    Hi All,
    I hope is threre anyone to help me in my problem.
    I use SAPGUI(Record) to record entries in Transaction ME21N to create Purchase Order. I use the SECATT transaction. I create complete recording for all ALV GRID rows. and i create a structure varible of type MEPO1211 for material data for each row.
    i put the data on the structure variable but when i user that varible as a parameter ref. it show me error that <structure name>-<field name> do not exist.
    How is posible to load data using structure.  and how i create varients for the structure variables.

    OK.... some progress to report.
    I was setting memberName onmouseover-- which is also the
    trigger for the tooltip-- thusly:
    <p><em onmouseover="memberName='John Doe'"
    id="trigger">John Doe</em></p>
    It seems that the variable is being set, but too late, as the
    trigger has already caused the div... id="tooltip"> to be
    evaluated with "memberName" not equal to any of the names in the
    dataset. I tried using a function call to set "memberName" and
    tried putting the onmouseover in the <p> tag and leaving the
    trigger id in the <em> tag. but neither of those appear to
    change the outcome. "memberName" still appears to be set to the
    value I initialized it to up the the <head> section at the
    time the tooltip <div> is evaluated. Although it is set
    correctly if I check it's value using Firebug after I have
    mouse-overed it.
    Incidentally, using a Firebug breakpoint just before the
    <div spry:when...> and checking the value of memberName was
    how I discovered that "memberName" still seemed to have a value of
    "initialized" which is what I set it to up in the <head>
    section.
    Having written all of this, I am wondering though, shouldn't
    the value of "memberName" be equal to "John Doe" the second time I
    mouseover it? Or, if there are more than one trigger "names" on the
    page, shouldn't "memberName" be equal to the name of the previous
    trigger that I moused-over? And with memberName having a legitimate
    value at that point, shouldn't the tooltip now show the correct
    display information rather than just that little few pixel square
    box that I am getting when I mouse-over the trigger name?
    Clearly there is something that I just am not understanding.
    Janet

  • Can we use Substitution variables in MAXL?

    Hi,
    Can we use substitution variables in MAXL script?
    I have to run this MAXL command for clearing a slice of ASO cube on V11.1.1.3.
    alter database Apname.DBname clear data in region 'CrossJoin({[2009]},{[Dec]})';
    I am planning to use Current_year & Current_month variables instead of hardcoding 2009 & Dec as I have to use this everymonth to clear the current months data.
    If it is allowed, what is the syntax?
    Is there any alternative apart from substitution variables?
    Appreciate your thoughts.
    Thanks,
    -Ethan.

    You would just use ampersand and the variable name instead of the hard coding e.g. &yearVar &periodVar.
    Not tried it on aso clears but in theory it should work as ...'CrossJoin({&yearVar},{&periodVar})';
    just change yearVar and periodVar for your substitution variable names.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Scripting Language Options for the Script Task Options SSIS 2012

    Can python or perl be used as a script language in the drag and drop script task? I believe only VB.Net and C# are, but I see under SSDT Tools -> Options there are some choices for Python Debugging? I'd like to use python as my SSIS scripting language
    in some cases. If it can not be used as the script task language, what are the Python options under Tools -> Options for?
    Any experts out there who can illuminate?
    Thanks all

    Hello,
    In SSDT in a SSIS Script task you can only use Visual Basic.NET and C#, no other programming / scripting languages.
    SSDST is a plugin for Visual Studio and in VS you will find several options which are irrelevant for SSIS projects, like this Phyton debugging option.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Workflow context variable / function

    Is there any Database variable or function, which would return, whether a specific code is being called from a Workflow process or not ?
    For Ex: if the function fnd_global.user_id return a value other than -1, then the code is being executed from Oracle eBusiness suite. Similarly FND_GLOBAL.CONC_REQUEST_ID gives info about concurrent program.
    regards
    Yj

    Hi Maya,
    I dont think you need to use Context variable as a replacement for AT NEW....There would be something else out of box...
    Because Context Variable represents - Variables declared in context to the report other than declaraing globally....
    Could you please send us the part of code where you get this error?
    Best Regards,
    Ram.

  • Session Context Variable and Order by clause

    Hi All,
    Im using Oracle 11g R2.
    Is it somehow possible to use Context variable (to store column name) in ORDER BY clause? My ultimate aim is to construct Order by at runtime without using concatenation.
    e.g. i created context as my_ctx for some pkg and its variable as v_ctx having value set as "TABLE_NAME"
    so is it possible to use it as
    select * from all_tables
    order by sys_context('my_ctx', 'v_ctx');
    if no, is there any work around??
    Thanks,
    Vivek

    its better to post here
    Oracle Discussion Forums » Oracle Database » SQL and PL/SQL

  • Hiding Pages in ADOBE form using formcalc scripting.

    Hi Experts,
    I am new to ADOBE form and currently working on invoice print output. (NOT an  Interactive adobe form)
    My requirement is
    i wanted to print one main page and 5  different annexures(anexures are having different layouts so is in diff forms and contained in diff pages)
    Deppending on 'Oreder reason' (made as global variable)  , i need to select appropriate annexure and print
    main page and any one of the annexure.
    so i should hide all other annexure, to achive this i used formcalc scripting.
    i tried hiding annexure 2 by following code,
    data.Annexure2::ready:form - (FormCalc, client)
    if ( data.G_F_ORDER_REASON.rawValue == "ANX" )
    then $.presence = "hidden"
    endif
    i have passed value 'ANX' to this , i could see the value of order reason printed on page Annexure2 but it is not executing (getting in to if condition) condition and not hiding the page ...
    Experts please help me...
    this way i have to hide 4 other annexures...please help me or give me some other option to achive this.
    thanks and regards
    varun
    Edited by: skyblue on Aug 6, 2011 3:30 PM

    coding Formcalc is a pain.
    But you're doing the right thing by passing in a variable and hiding based on the content of it.
    Here's an example of where I'm hiding a subform on a page.
      if ( main_sf2.charter_only.CHARTER_DOC.rawValue eq "X" ) then
       main_sf2.pts_sf.presence = "visible"
      else
       main_sf2.pts_sf.presence = "hidden"
    endif
    Looks like your code is similar - try changing
    ( data.G_F_ORDER_REASON.rawValue == "ANX" )  to
    ( data.G_F_ORDER_REASON.rawValue  eq "ANX" )
    or instead of $.presence = "hidden"  fully qualify the name of your page to  data.Annexure2.presence = "hidden"

  • How to use one Assign action to create multiple context variables

    Hello, everyone.
    I read some tips from Oracle documentation that said:
    Avoid creating many OSB context variables that are used just once within another XQuery
    Context variables created using an Assign action are converted to XmlBeans and then reverted to the native XQuery format for the next XQuery. Multiple "Assign" actions can be collapsed into a single Assign action using a FLWOR expression. Intermediate values can be created using "let" statements. Avoiding redundant context variable creation eliminates overheads associated with internal data format conversions. This benefit has to be balanced against visibility of the code and reuse of the variables.
    Oracle® Fusion Middleware Performance and Tuning Guide
    +11g Release 1 (11.1.1)+
    Part Number E10108-03
    But I don't know how to do that. Can you show me ?
    Thank in advance
    Edited by: Doubt_Man on Aug 17, 2011 3:30 PM

    if you return sequences, you can declare the return type of your xquery as xs:double*
    (notice the asterix at the end)
    but I have the impression that in the assign action only the first element will be assigned to the context variable
    (correct me if I am wrong)
    So in fact you might indeed have to transform the sequence into a element()*, or concatenate it into a CVS string - for instance using string-join
    http://www.xqueryfunctions.com/xq/fn_string-join.html

  • How to SIMPLY use the %DIMENSION_TO_SET% variables into logic scripts

    hello,
    I'm using a prompt of type "COPYMOVE" or "COPYMOVEINPUT". In this type of prompt, there are 2 columns of dimension members list, one for defining the "source zone" and one for defining the "target zone" of logics.
    The left colum of the prompt (for source zone) feeds the variables %DIMENSION_SET% : %ACCOUNT_SET%, %ENTITY_SET%, %CATEGORY_SET%, etc...and these variables can be used in the logic scripts in *XDIM_MEMBERSET instructions for example.
    The right colum of the prompt feeds the variables %DIMENSION_TO_SET% : %ACCOUNT_TO_SET%, %ENTITY_TO_SET%, %CATEGORY_TO_SET%, etc...and I don't know how to SIMPLY use these variables in the logic scripts.
    I've found a tricky way to do that but I meet 2 problems :
    - it is complicated
    - the multi-info instruction (BEGININFO/ENDINFO) seems to be bugged as blank lines are added all the time in the code and sometimes I have to wait for minutes when I try to modifiy the package code through BPC for excel eData/modify package menu.
    So the question is how to SIMPLY get the %DIMENSION_TO_SET% variables into logic scripts and use them ? Thanks, R.
    Here is the tricky package code I use at this time (I build one function for each %DIMENSION_TO_SET% variable and I pass these functions to the logic) :
    PROMPT(COPYMOVE,,,,"ACCDETAIL,ACCOUNT,CATEGORY,DATASRC,ENTITY,TIME,YEARS")
    TASK(Execute formulas,USER,WS-WW\PlauchuR)
    TASK(Execute formulas,APPSET,US)
    TASK(Execute formulas,APP,SV)
    TASK(Execute formulas,SELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\FROM_1561_.TMP)
    TASK(Execute formulas,TOSELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\TO_1561_.TMP)
    BEGININFO(%FSS%)
    *FUNCTION TARGETACCDETAIL=%ACCDETAIL_TO_SET%
    *FUNCTION TARGETACCOUNT=%ACCOUNT_TO_SET%
    *FUNCTION TARGETCATEGORY=%CATEGORY_TO_SET%
    *FUNCTION TARGETDATASRC=%DATASRC_TO_SET%
    *FUNCTION TARGETENTITY=%ENTITY_TO_SET%
    *FUNCTION TARGETTIME=%TIME_TO_SET%
    *FUNCTION TARGETYEARS=%YEARS_TO_SET%
    ENDINFO
    TASK(Execute formulas,FORMULASCRIPT,%FSS%)
    TASK(Execute formulas,LOGICFILE,D:\BPC\Data\WebFolders\US\SV
    ..\AdminApp\SV\_TEST.Lgf)
    TASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    Edited by: ALEXANDRE BEDIER on Jun 16, 2010 3:15 PM

    hello,
    finally I've discovered that there is no need of BEGININFO instruction.
    One can pass several functions to a logic with one FORMULASCRIPT task. The functions definitions have to be separated by instructions. See below :
    PROMPT(COPYMOVEINPUT,%FTARGETS%,,"select source and target zone for category and datasource.","ACCDETAIL,ACCOUNT,CATEGORY,DATASRC,ENTITY,TIME,YEARS")
    TASK(Execute formulas,FORMULASCRIPT,*FUNCTION TACCDETAIL=%ACCDETAIL_TO_SET% *FUNCTION TACCOUNT=%ACCOUNT_TO_SET% *FUNCTION TCATEGORY=%CATEGORY_TO_SET% *FUNCTION TDATASRC=%DATASRC_TO_SET% *FUNCTION TENTITY=%ENTITY_TO_SET% *FUNCTION TTIME=%TIME_TO_SET% *FUNCTION TYEARS=%YEARS_TO_SET%)
    TASK(Execute formulas,USER,%USER%)
    TASK(Execute formulas,APPSET,%APPSET%)
    TASK(Execute formulas,APP,%APP%)
    TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
    TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\_TEST.LGF)
    TASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    Then one will be able to use the functions TACCDETAIL, TCATEGORY, TACCOUNT,... in the logic script.
    Edited by: ALEXANDRE BEDIER on Jun 24, 2010 10:31 AM
    Edited by: ALEXANDRE BEDIER on Jun 24, 2010 10:33 AM

  • Using Static Variable against Context Attribute for Holding IWDView

    Dear Friends,
    I have a method which is in another DC which has a parameter of the type IWDView. In my view, I will have an action which will call the method in another component by passing the value for the view parameter. Here, I can achieve this in 2 types. One is - I declare a static variable and assign the wdDoModifyView's view as parameter value and I can pass this variable as parameter whenever calling that method or the second way - create an attribute and assign the same wdDoModifyView's view parameter as its value. Whenever I call this method, I can pass this attribute as parameter. What is the difference between these two types of holding the value since I am storing the same value i.e., wdDoModifyView's view parameter. But when I trigger the action from different user sessions, the first type of code (using static variable) prints the same value in both the sessions for view.hashCode() and View.toString(), but the same is printing the different values when I pass the attribute which holds the view parameter.
    Clarification on this is highly appreciated
    The problem I face is when I use static variable to get the view instance and export the data using the UI element's id, the data belonging to different user sessions is mixed up where as when I use Context Attribute, the same problem doesn't arise. I want to know the reason why it is so. Is there any other place or way where I can get the current view instance of each session instead of wdDoModifyView?

    Hi Sujai ,
    As you have specified the problem that we face when we use  static attributes, when end users are using the application .
    Static means i  have n number of objects but the static variable value will remain same every where.
    when it is context attribute for every object i.e nth object you have a nth context attribute i mean nth copy of the context attribute.
    so every user has a unique Iview parameter , when context is used and
    when static is used  , assume you have userA , his iview is set this intially  and u have another user B , when he is using  , since the variable is static and when you access this variable you will get the value of userA.
    Regards
    Govardan Raj

  • Using variables in WLST Script ant task

    I have multiple scipts that are run using ant tasks, however, I do not want to have to enter the password every time one of these scripts is executed. Instead I would like to use the following ant task to store the password in a variable/property:
    <target name="getPassword" >
         <echo message="Domain: ${domain}" />
    <echo message="Username: system" />
    <input message="Please enter password:" addproperty="password" />
    </target>
    I would then like to use that variable/property everytime a script is executed like this:
         <target name="deploy4x">
              <echo message="***** Copying 4X.ear *****" />
              <copy file="${build.path}\jar\4X.ear" todir="${apps.dir}" preservelastmodified="true"/>     
              <echo message="***** Updating 4X.ear on ${domain} *****"/>
              <wlst debug="true" fileName="Deploy4X.py" executeScriptBeforeFile="true" failonerror="true" >
                   <script>
                        connect('system','%s' % ${password},'%s' % $url)
                   </script>
              </wlst>
         </target>
    However, the script blows up every time I try to run it b/c of the connect() line. I have also tried connect('system','%s' % password, '%s' % url).
    Has anyone else successfully used variables in an Ant WLST Script task?
    Thanks.

    Hi,
    when I use *XDIM_MEMBERSET ACCOUNT AS %TEST% = BAS(REVENUE) - it work fine.
    BUT ! after my first commit, it seems like the variable value is lost. And the *Xdim_memberset takes all.....
    Fortunately enough, *select still contains the variable value after *commit.
    Thanks,
    Joergen
    *Correction !
    It actually works, it still contains the variable value after commit !!
    Edited by: Jørgen Dalby Andersen on Dec 30, 2011 1:33 PM

  • HTTP trigger script using ECC variable/Call sub flow - not working

    Hello all,
    I am trying to http trigger script which will show the real time stats of the CSQs. The script is based on "Day of week" and Time of day" checking the queue time and will update the HTML doc to show as real time data. The scripts for various CSQs has multiple boolean variable (parameter, set to false by default) like "open/night/emergency/meeting" which can be set to open or close the queue by the supervisor depending on the situation. For ex, if a variable is set to True in application page for any of the Queue, I am trying to send that "true" value to the http trigger script, so that these can be shown real time.
    Steps tried:
    1. Tried using ECC variable - setting a ECC variable to True in the main script and getting that value in the http trigger script to a local variable, if found True, the display as "CSQ1 = OPEN", else "CSQ1 = CLOSED" ; but the script gave an error as attached (http1.png)
    2. Tried using Call sub flow - Like Holiday check, under the "Rest" branch of "Time of Day" - will check the queue and will get the value returned to the local variable - Failed and it shows an error as attached (http2.png)
    As of now, I have completed the script with the logic of checking the logged in agents count in the CSQs and updating the Real time data. But it has some issues like, if an agent didnt logged out properly or if an agent is asked to login during OOH although the queue is closed, as per the logged in resource logic, the data is shown as OPEN.
    Please share your thoughts on this and if you have come across such a script, kindly share as a knowledge share.
    Thanks in advance.
    Bala.

    Hello all,
    I am trying to http trigger script which will show the real time stats of the CSQs. The script is based on "Day of week" and Time of day" checking the queue time and will update the HTML doc to show as real time data. The scripts for various CSQs has multiple boolean variable (parameter, set to false by default) like "open/night/emergency/meeting" which can be set to open or close the queue by the supervisor depending on the situation. For ex, if a variable is set to True in application page for any of the Queue, I am trying to send that "true" value to the http trigger script, so that these can be shown real time.
    Steps tried:
    1. Tried using ECC variable - setting a ECC variable to True in the main script and getting that value in the http trigger script to a local variable, if found True, the display as "CSQ1 = OPEN", else "CSQ1 = CLOSED" ; but the script gave an error as attached (http1.png)
    2. Tried using Call sub flow - Like Holiday check, under the "Rest" branch of "Time of Day" - will check the queue and will get the value returned to the local variable - Failed and it shows an error as attached (http2.png)
    As of now, I have completed the script with the logic of checking the logged in agents count in the CSQs and updating the Real time data. But it has some issues like, if an agent didnt logged out properly or if an agent is asked to login during OOH although the queue is closed, as per the logged in resource logic, the data is shown as OPEN.
    Please share your thoughts on this and if you have come across such a script, kindly share as a knowledge share.
    Thanks in advance.
    Bala.

Maybe you are looking for

  • Netweaver 7 (ECC6) issues list?

    Hi, We're currently on 4.6c and going to upgrade to ECC6 with unicode I'm trying to compile a list point taken care converting to unicode from ABAP technical point of view. Does anyone have such a list? Some points i shortlisted are : 1) Use GUI_UPLO

  • Process of WM

    Dear all, Does the process of WM starts from Purchase order creation ? As per my knowledge it does starts from posting of GR'S. Please suggest your view. Regards, Rocky.

  • Re field order in INNER JOIN

    Hi, I need a suggestion for improvement of my inner JOIN statement. internal table itab is of below type type: begin of ty_itab         field a         field b         field c         field d         end of ty_itab I have to join two database table T

  • 4.6 Mobile iOS SoftKeyboard Hiding

    Hey everyone, So i'm new to not only this community but also Flex programming. I'm working on a app project at my work using FB. My question is, about the Softkeyboard still coming up even thougtht the event was canceled.We were recently using FB 4.5

  • Advanced Pulldown Issues

    I'm capturing footage from a concert recorded on a bunch of Panasonic DVX100a cameras. ALL cameras were configured identically for 24p Advanced recording. Most tapes are capturing fine, but with some I am constantly getting an error in the advanced p