How to assign colour to a variable?

In a project have a dozen of half titles that divides the book in these parts.
Only a master page, no chapters, no sections.
In the master is inserted a variable (running header) based on the twelve half titles to identify in each page the parts (1-12)
I need to change the colour of this running header instead of creating twenty master pages.
Has it to be scripted?

Hi Camilo,
If this is what you want to do, that can be done with variables.
With left and right pages:

Similar Messages

  • How to assign a Customer exit variable to Key figure

    Hi,
    I have created a Customer Exit variable to findout no. of days in the month. 
    But I dont know how to assign that variable to a Keyfigure value.  Can you please let me know how to assign it.
    Regards
    Sankar

    Hi Sankar,
    From what I could understand, you want to display the output of that key figure for some no. of days of a month (calculated in your customer exit variable)...right ???
    If that is the case then you can create a structure in columns. Create a new selection...include your key figure and that customer exit variable in it.
    That shall serve the purpose.
    Regards
    Shalabh Jain
    Edited by: Shalabh Jain on Dec 15, 2008 1:46 PM

  • How to assign my custom VBA variable to a parameter

    I want to be able to assign the value from my custom variable to a parameter from a script;
    but I cannot figure out if it is possible;
    I want to be able to manipulate a string using my VBA code, save this string to a variable, and pass it back to a one of the parameters on a page in a scripts, and continue playing the script with this new value instead, without using Data Bank;
    Thank you for help.

    Here is an example that sets a parameter named "UserName."
    Private Sub RSWVBAPage_beforePlay()
    Dim col As New Collection
    col.Add "MyName"
    RSWApp.SetParameterValues "UserName", col
    End Sub
    As you can see, this code is in the before play event. You must put this in before play in the page where the parameter exists. You can also use wild cards when identifying the parameter to be set.
    For example, if you needed to look for UserName_784328732 (with a changing number value)
    You could do the following RSWApp.SetParameterValues "UserName*", col
    I hope this is helpful

  • Help: How to assign dynamically a javascript variable to a jsp variable???

    Hello all,
    What I need to do is to assign the value of the html form element which is a checkbox in this case:
    <input name="ADB02_checkbox" type=checkbox id="ADB02_checkbox" onClick="decide_enable_or_disable_particular_checkbox()" value="ADB02">
    to a jsp variable :
    <%
    String riderCode = "";
    %>
    Its dynamic because i need to do different operations based on different rider codes like in this function:
    function decide_enable_or_disable_particular_checkbox() {
    var rider = document.rider_form;
    alert(rider.ADB02_checkbox.value);
    if (rider.<%= riderCode%>_checkbox.checked == true) {
    enable_all_row_elements_for_<%= riderCode%>();
    else {
         disable_all_row_elements();
    which uses the naming of the rider code to call other corresponding functions.
    so is there any way that you guys ca suggest a solution.
    what i thought is to do this:
    function decide_enable_or_disable_particular_checkbox() {
    var rider = document.rider_form;
    HERE--> riderCode = rider.ADB02_checkbox.value;
    alert(rider.ADB02_checkbox.value);
    if (rider.<%= riderCode%>_checkbox.checked == true) {
    enable_all_row_elements_for_<%= riderCode%>();
    else {
         disable_all_row_elements();
    or
    add an onFocus="riderCode = document.rider_form.ADB02_checkbox.value;" in the checkbox tag.
    but can i do that or is there any other way or is it totally impossible to assign javascript values to jsp variables.

    Hi again,
    I got a problem here abt looping in javascript.
    The prob is that only the 1st loop works the rest are not.
    So only the checkbox in the 1st row is enabled, the rest aren't.(only ADB02 is enabled not DLP01 cause ADB02 is 1st in the loop)
    Here are 2 of many of the checkboxes in different rows:
    <input name="ADB02_checkbox" type="checkbox" id="ADB02_checkbox" value="checkbox" onClick="val_checkbox()" disabled=true>
    <input name="DLP01_checkbox" type="checkbox" id="DLP01_checkbox" value="checkbox" onClick="val_checkbox()" disabled=true>
    This is declared in jsp:
    <%
    //to be used with javascript function prepare_elements() for checking to enable/disable checkbox , to check age base and limit of insured
    String[][] riderCheckArray = {
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_ACCIDENTAL_DEATH_BENEFIT, "20", "60"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_LIFELINE_BENEFIT, "20", "50"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_MEDICASH_100_PLAN, "0", "55"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_MEDICASH_200_PLAN, "0", "55"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_MEDICASH_300_PLAN, "0", "55"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_MANUTERM_REDUCING_TERM_ASSURANCE_PLAN, "16", "65"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_PERSONAL_ACCIDENT_BENEFIT, "20", "65"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_15_YEAR_LEVEL_AND_CONVERTIBLE_MANUTERM_RIDER, "16", "55"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_20_YEAR_LEVEL_AND_CONVERTIBLE_MANUTERM_RIDER, "16", "50"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_5_YEAR_RENEWABLE_AND_CONVERTIBLE_MANUTERM_RIDER, "16", "60"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_10_YEAR_RENEWABLE_AND_CONVERTIBLE_MANUTERM_RIDER, "16", "60"},
    %>
    Here's the script (the riderCheckArray[any no.] should be eg: riderCheckArray[0] (has an i in front))
    <script>
    <!--////////////////////////////////////PREPARE PAGE BASED ON PLAN///////////////////////////////////-->
    function prepare_elements() {
    var rider = document.rider_form;
    <!--///////////////////////////////////////////////////for her@myfuture////////////////////////////////////-->
    for (i=0 ; i < <%= riderCheckArray.length%> ; i++) {
    if ("<%= txtPlanCode%>" == "<%= riderCheckArray[i][0]%>" ) {
    riderCode = "<%= riderCheckArray[i][1]%>";
    if (<%= insuredAge.intValue()%> < <%= Integer.parseInt(riderCheckArray[i][2])%> ||
    <%= insuredAge.intValue()%> > <%= Integer.parseInt(riderCheckArray[i][3])%>) {
    disable_particular_checkbox();
    alert("This rider cannot be attached. This rider can only be attached for age range " +
    <%= riderCheckArray[i][2]%> +
    " to " +
    <%= riderCheckArray[i][3]%>);                    
    else {                    
    enable_particular_checkbox();
    <!--////////////////////////////////////ENABLE/DISABLE checkboxes////////////////////////////-->
    function enable_particular_checkbox() {
    var Rdr_Checkbox = riderCode + "_checkbox";
    var rider = document.rider_form;
    rider.all(Rdr_Checkbox).disabled = false;
    rider.all(Rdr_Checkbox).style.background ="FFFFFF";
    function disable_particular_checkbox() {
    var Rdr_Checkbox = riderCode + "_checkbox";
    var rider = document.rider_form;
    rider.all(Rdr_Checkbox).disabled = true;
    rider.all(Rdr_Checkbox).style.background ="CCCCCC";
    </script>

  • Help needed on how to assign string value to variables in process designer

    Hi,
    I am using LC Workbench 8.0.1 version, I have a business requirement where in my form I have a dropdown box which contains two options i.e,
    1. Accept
    2. Decline
    If the user selects Accept, I have to route the form to user some "x" or if the user selects Decline then the form should be routed to some user "y" .
    To implement this I need to capture the user selected value which is a String.
    can someone explain me how to reslove this..?
    thanks and regards,
    sudheer

    I'm assuming you're using a xfaForm variable that points to an XDP in the repository to render your document.
    In that case, you set the Form Data Mapping to point to that xfaForm variable in the User step.
    When the user submits the form the xfaForm variable contains the data for the form in an XML format. You can have multiple routes that come out of your user step that will check a certain value in the xfaForm variable.
    The xml data for you form will be located under the /process_data/xfaForm/data/datasets/data node.
    You can use an xPath similar to /process_data/xfaForm/object/data/xdp/datasets/data/myNode/MyField
    you can also use the // notation to do a full search within the data node if you're not sure of the structure:
    /process_data/xfaForm/object/data/xdp/datasets/data//MyFieldValue
    I hope this helps.
    Jasmin

  • How to assign information file to variable.

    Hi, I created two variables.
    First variable(name:v_year_bbdd)
    This variable receive a year database input.
    SELECT
    CASE WHEN extract (month from trunc(sysdate)) = 1
    THEN
    extract (year from trunc(sysdate))-1
    ELSE
    extract (year from trunc(sysdate))
    END
    FROM DUAL
    Second variable(name:v_year_file)
    This variable receive a year a value of csv.
    In the scene(package) I will compare two variables.
    but my problem is how I get the value file?
    The file is a csv, and value is a year.
    I could have loaded this information of the file in a table, but in the scene it can´t to compare field of the table with the variable, but only I can variable with variable.
    Dou you undestand me?
    thanks

    Hi ,
    I am not sure what you meant by code image ...
    All you need to do is that follow the steps mentioned in the post and then copy the code generated for "Load Data" from your own ODI operator .
    Then use the same code inside your variable .
    Thanks,
    Sutirtha

  • How do I use an array variable in the assignment target?

    Hi,
    I am creating a BPEL process in which I have to use an array variable. The array variable needs to be initialized based on some condition.
    The issue is I cannot find a way to set the value of the array variable. There are ways to GET the value of an array variable indexing into it.
    But how do I set the value by using the Array variable in the <to> tag?
    Any help is appreciated. I am using BPEL 10.1.2.0.2.
    Thanks.

    You can declare a variable of type integer which will server as your index. Figure out based on some condition in your process which index of array to update. Assign to your integer variable you created.
    And have Assign copy operation like this -
    <copy>
    <from variable="Var_Output_FetchDueDate"
    part="OutputParameters"
    query="/ns18:OutputParameters/ns18:DUEDATE"/>
    <to variable="outputVariable" part="payload"
    query="/client:GetCustomerAccountInformationProcessResponse/client:customer/client:accounts/client:account[$Var_Counter]/client:dueDate"/>
    </copy>
    I have been using this in my processes.

  • How to assign a variable value to crystal report viewer formula with CR2008

    Hi ,
    I am using crystal reports 2008 and i am not able to find how to assign  variable value  to crystal report viewer formula.
    In CR 8.5 , i used to have crystalreport1.Formulas(0) = variable1
                                             crystalreport1.Formulas(1) = variable2
    but, i don't find similar kind  in crystal reports 2008.
    How can i achieve the same functionality using crystal reports 2008.
    Thanks in Advance
    Regards,
    Ramnath

    Hi,
    Can i anyone help me out with this.
    I am generating crystal reports in vb6 using CR 8.5 and vb6 and below is the code snippet for the same
    CrystalReport1.Formulas(0) = "PrintTitle= '" & strMyTitle & "'"
    CrystalReport1.Formulas(1) = "FromDate= '" & MskFromDate.Text & "'"
    CrystalReport1.Formulas(2) = "ToDate= '" & MskToDate.Text & "'"
    Please let me know how the same functionality can be achieved in VB.Net using Crsytal reports 2008
    Any code snippet would be of great Help.
    Thanks in Adnvance.
    Ramnath

  • How to Assign a Field value to a Variable??

    Dear All,
    Kindly let me know, if <b>"HOW TO ASSIGN A FIELD VALUE TO A VARIABLE????"</b>
    Situation is, we have a Field (OBJK-TASER) in which 2 tables (SER01 & SER03) are stored. And we want to access names of the Tables which are there in the field(TASER) in  (OBJK) table  to a variable and then passing that variable to the sql query as a table name to get data accessed dynamicaly.

    try this
    select TASER from OBJK into table it_table.
    loop at it_table.
    select field1 field2 from (it_table-table) into table it_fields.
    endloop

  • How to assign a JSP variabl's value to a JavaScript variable?

    Hello,
    I want to assign a JSP variable's value to JAVASCRIPT variable.
    or how to assign JavaScript variable's value to JSP varialbe
    HOw do i do it ?
    can anyone please help?
    Regards and thanks for your time.
    Ashvini

    I want to assign a JSP variable's value to
    JAVASCRIPT variable.
    var jsVariable = <%=someVariable%>;
    or how to assign JavaScript variable's value to JSP
    varialbeYou can't. JSP is server-side and JavaScript is client-side. The JSP variables are never available on the client side for any sort of assignment.

  • How to assign bean value to a local variable in JSP using struts.

    Hi everybody!
    I've a problem that puzzled me on how to assign a bean value to a local variable like String in JSP using struts.
    we can have someting like this to display the value
    <bean:write name="detailService" property="status" />or
    <bean:define id="theStatus" name="detailService" property="status"/>
         This is country: <%=theStatus%>but an error occured when I tried like this:
    String currentStatus = "<bean:define id="theStatus" name="detailService" property="status"/>";
    or
    String currentStatus = "<bean:write name="detailService" property="status" />";Is there a way to do this?.....
    Any help pretty much appreciated

    Java != JSP.
    The <bean:define> and <bean:write> tags are custom tags meant to appear in the HTML section of a JSP file, as opposed to the scriptlet section. They actually get turned into java code as part of the translation process.
    The <bean:write> tag naturally just writes out what you tell it to.
    The <bean:define> tag defines a local variable, and gives it a value.
    this should do it.
    <bean:define id="theStatus" name="detailService" property="status" type="java.lang.String"/>
    <%
      String currentStatus = theStatus;
    %>With the advent of JSTL, you shouldn't really need to use scriptlet code anymore. Personally I am for 0% scriptlet code in any jsp I write.

  • How to assign sessionscope variable to the bind variable in Query of VO

    Hi all,
    I want to know how to assign a sessionscope variable in the binvariable of Query in VO
    My sessionscope variable holds the value of currently selected column in the table. eg:empname of the currently selected column which is in empdetails table...
    I want display the schemes available for the selected employee in the next table..The schemes are in another table named empschemes which has the empname and empschemes as column
    I have created a vo for empschemes table with bind variable 'scheme_bind'..I need to set the sessionscope variable '#{sessionScope.empname}" to the bind variable.
    Its urgent,..Pls do reply asap
    Thanks in advance
    Nasrin

    HI,
    You can use
    adf.context.sessionScope.get("YourSessionVariable")this code for assigning VO's bind variable value.write this code where you create bind variable and do not forget click on expression radio button.
    Rafat

  • How to assign DOT ( current context ) to a variable ?

    If i use XML dot (.) within Href , i am getting current context (http://servername/test)
    Like this -->
    <TD>
    <xsl:element name="a">
    <xsl:attribute name="href">./</xsl:attribute>
    <xsl:value-of select="NAME" />
    </xsl:element>
    </TD>
    But if i try to assign dot to a variable ,variable is not picking up the current context.
    How can do this ?

    <xsl:variable name="a" select="."/>
    Usually this is not necessary, since you can refer to the current context using the current() function.

  • How to make the assignment of a AW variable perminent(Java API+DMLcommands)

    hi,
    i want to modify the analytical workspace.
    i called the dml commmands from java AW api.
    the program is working fine.but i can not see the result.
    i assigned a AW variable with some data by useing DML command
    but after closing the program i unable to get the assigned value from the variable
    i checked by using AW WORK SHEET.
    any one can help me how to make that assignment perminent
    my code is like this
    AWconnection.executeCommand("v_variable=value");

    Hi,
    I have just rephrased the question to make it clear.
    I am working with Jdeveloper and BI beans. We are using Java Analytical workspace API for connecting and saving the user input as Analytical workspace Variable (which will be later used for running the AW Programs). The part of the code looks like below.
    awConn.executeCommand("V_NII_SIM=50");
    awConn.executeCommand("update");
    awConn.executeCommand("commit");
    Despite doing the UPDATE and COMMIT to the analytic workspace, the change is not getting appplied to the AW. i.e After the execution of this program, when I checked the value of the variable V_NII_SIM in the OLAP worksheet (of AWM), then it is not reflecting the new value (50).
    OLAP> show V_NII_SIM
    100.0
    The above command in OLAP worksheet returns the old value of 100 but not the one set by my program.
    Would appreciate your help on this.

  • [b]how to assign whole expression to a temporary variable[/b][/b]

    Good afternun. Can someone help me how to assign the whole expression to a temporary variable. The expression is
    id = catDao.findByPK(info.getCategoryId());
    Thanks in advance and may I know how to validate the temporary variable?

    You can do this with an anonymous class and a command pattern.
    interface LazyEval {
       public Object getValue();
    LazyEval le = new LazyEval() {
      public Object getValue() {
        return catDao.findByPK(info.getCategoryId());
    id = le.getValue();However, this sound like a solution to a problem which should be done another way.

Maybe you are looking for

  • Digital AV Adapter not working after updating to ios6?  iPad 3.

    Hello, I own an iPad 3rd gen, and since I updated it to ios6 my Digital AV Adapter has stopped working (no image and no sound on TV). It worked just fine before I upgraded to ios6. Is this a known ios6 problem? I also found this message at apple boar

  • Exporting video problems

    FCP X has been working fine for me, but just recently I have been having many problems with a few projects. Playing the video in the timeline the video is fine, but once I export to quicktime or youtube, it becomes very distorted like this- http://ww

  • IPad mirror shows up in 4:3 aspect

    why doesn't apple tv show ipad mirror in widescreen and only in 4:3 aspect ratio - the advertisements clearly show photos in full screen - am I missing something or is this misleading advertising

  • Jobs for EEO-4&5 Report in public sector...

    Hi Gurus!                I am working for a public sector PA impl. The client wants EEO 4&5 reports for public sector. We have a standard report for that. But since the report is based on jobs, i wanted to know if the jobs for EEO are the same jobs w

  • How long after submitting the serial number does it take to receive your Mountain Lion download code?

    I bought my new MacBook Air on July 19 and received it on 26 and on that day I followed the steps to apply for the up-to-date program for Mountain Lion. I finished the process and got to the final page, where upon successful completion of the forms y