Correct way to construct variable based on other variable's name

Hello!
I have done this topic based on some modifications of this thread.
The problem is that I can't understand how to manipulate with selection of the columns as variable when iterating over loop.  My goal is to define multiple variables for 'select' and choose correct one when the adequate topic is selected on loop. It seems
that my problem is that I'm not correctly construct the variable for 'select' by using 'invoke-expression'.
The source file is the following:
topic=interface_bridge ruleaction=add name=vlan10
topic=interface_bridge ruleaction=add name=vlan13
topic=interface_ethernet set=1 comment=DMZ
topic=interface_ethernet set=2 comment=Servers
The script is the following:
$file="c:\scripts\mk.txt"
#selections
$interface_ethernet='comment','name','set','switch','master-port'
$interface_bridge='comment','name','protocol-mode'
#topics
$topic_int_bridge='interface_bridge'
$topic_int_ethernet='interface_ethernet'
$topics=@($topic_Int_bridge, $topic_int_ethernet)
foreach ($topic in $topics)
$match='^topic='+$topic+'\s+'
$result_File = 'config_'+$topic+'.txt'
#construct selection
$select = '$'+$topic
$interface_ethernet='comment','name','set','switch','master-port'
$interface_bridge='comment','name','protocol-mode'
##automatically select correct topic on loop - This does not work correctly on loop
##the main idea is to constuct select variable based on topic name
$select_topic=invoke-expression ('$'+$topic)
$results = Get-Content mk.txt | Where-Object { $_ -Match $match }| foreach { new-object PSObject -Property $($_ -replace '^' -replace ' ',"`n" | convertfrom-stringdata) }
$results | select $select_topic
I'm hang on the following: when I run the script it only takes first selection ($interface_bridge) gives the result about first topic (bridge), and for second (ethernet) - only comments (this means that the second selection for interface_ethernet (variable
$interface_ethernet) is not used.
comment name protocol-mode
vlan10
vlan13
DMZ
Servers
Expected result should be the following:
comment name protocol-mode
vlan10
vlan13
comment set name switch master-port
DMZ 1
Servers 2
Question:
How to modify the script that the result is printed for each topic with adequate selection:
1) when looping over topics, when the topic interface_ethernet is processed select and print results for variable $interface_ethernet
(selected items 'comment','name','set','switch','master-port')
2) when looping over topics, when the topic interface_bridge is processed select and print results for variable $interface_bridge
(selected items 'comment','name','protocol-mode')
3) etc...
Each topic should be on separated iteration block because for each will be generated csv file with each own header. 
Thanks.

 I just shorted my question. I hope that it can be better understandable. The source file is the following:
topic=interface_bridge ruleaction=add name=vlan10
topic=interface_bridge ruleaction=add name=vlan13
topic=interface_ethernet set=1 comment=DMZ
topic=interface_ethernet set=2 comment=Servers
Expected result should be the following on pipeline or on separate csv files:
comment name protocol-mode
vlan10
vlan13
comment set name switch master-port
DMZ 1
Servers 2
Expected behavior:
1) Select variables for each of the topic should be in the following form
$interface_ethernet='comment','name','set','switch','master-port'
$interface_bridge='comment','name','protocol-mode'
2) when looping over topics (the topics can be more than 50), when the topic interface_ethernet
is processed select and print results for variable $interface_ethernet
(selected items 'comment','name','set','switch','master-port')
3) when looping over topics
(the topics can be more than 50),
when the topic interface_bridge is processed select and print results for variable $interface_bridge
(selected items 'comment','name','protocol-mode')
As the topics can be more than 50 it wouldn't be a good idea to write separate condition
for each topic.

Similar Messages

  • Restriction of f4 help of a bex variable based on another variable input

    Hi,
    Could you please let me know if there is any possibility to restriction of f4 help of a bex variable based on another variable input.
    eg: when i select particular company code in one variable, i need to restrict the f4 help for another variables eg: pur. group based on selected company code.
    Regards
    Kasi

    Hi,
    Try using replacement path option in bex with replace variable with variable selction.
    Thanks.

  • Store object reference in variable resolved by other variable

    Hi everyone,
    In my test setup I use a Thread and I want to store an object ref to that Thread in a variable (type: object reference).
    In the sequence call settings I can provide a variable where I want to store this.
    I've done this before and it all worked fine. When I stop the thread I'm able to use a wait step that waits for the thead to stop by providing the reference I stored when the thread was started.
    Now I want to store the reference in a variable that is based on another variable. In my situation the following construction works. This is way I've entered in the Sequence call settings:
    #NoValidation = True, Evaluate("FileGlobals.ModuleConfig." + Parameters.ModuleInstance + ".ThreadRef")
    As you can see Parameters.ModuleInstance determines in which container the thread ref should be stored. But since this parameter is empty by default the evaluation fails so I have to use #NoValidation.
    This seems a bit ugly to me so I also tried:
    FileGlobals.ModuleConfig.GetPropertyObject(Parameters.ModuleInstance + ".ThreadRef")
    According to teststand this construction is OK, however my thread ref is not stored in this case...
    Is the first option I mentioned the only possible way for my problem? Or are there other, more elegant ways?

    Hi Kayr,
    I agree that the second approach you mention is the more elegant way to accomplish this.  I was able to successfully use this method on my end to access a propertyObject.  Can you send a sample sequence file so I can take a look?
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • What is the correct way to add styling to drag-and-drop created calendars?

    I have a working instance of a rich client calendar. I generated the view with the required fields (start, stop, provider, ...), put it into the App Module, and dragged it onto a JSF page to create a calendar.
    Next I created an activityScope object in a class called CalendarBean (no inheritance)
    Class CalendarBean()
    private HashMap<Set<String>, InstanceStyles> activityColorMap;
    +..+
    +public CalendarBean() {+
    super();
    activityColorMap = new HashMap<Set<String>, InstanceStyles>();
    HashSet setEd = new HashSet<String>();
    HashSet setLen = new HashSet<String>();
    setEd.add("Work");
    setLen.add("Home");
    activityColorMap.put(setEd, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.ORANGE));
    activityColorMap.put(setLen, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.RED));
    +}+
    +}+
    Next, I linked this up as a backing bean and associated the ActivityStyles of CalendarBean to it:
    +#{backingBeanScope.calendarBean.activityColorMap}+
    I populated some records in the database with properties "Work" and "Ed', but they show default blue.
    As I understand it, I need to do something with the getTags() method of the underlying CalendarActivity class, but I'm not quite sure how to do that.
    Took a stab at creating a class, CalendarActivityBean, that extended CalendarActivity, and pointed all the CalendarActivity references I had to the new class, but it didn't seem to fire (in debug), and I got into trouble, when inserting records, with
    public void calendarActivityListener(CalendarActivityEvent calendarActivityEvent) {
    currActivity = (CalendarActivityBean) calendarActivityEvent.getCalendarActivity();
    being an illegal cast
    What is the correct way to add provider-based styling to drag-and-drop create calendars?
    Ed Schechter

    A colleague of mine was kind enough to solve this:
    The calendar has ActivityStyles property = #{calendarBean.activityStyles}
    CalendarBean looks something like this:
    package com.hub.appointmentscheduler.ui.schedule;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.Set;
    import oracle.adf.view.rich.util.CalendarActivityRamp;
    import oracle.adf.view.rich.util.InstanceStyles;
    +public class CalendarBean {+
    private HashMap activityStyles;
    private String dummy;
    +public CalendarBean() {+
    +// Define colors+
    activityStyles = new HashMap<Set<String>, InstanceStyles>();
    HashSet setPending = new HashSet<String>();
    HashSet setArrived = new HashSet<String>();
    HashSet setApproved = new HashSet<String>();
    HashSet setCompleted = new HashSet<String>();
    setApproved.add("APPROVED");
    setPending.add("PENDING");
    setArrived.add("ARRIVED");
    setCompleted.add("COMPLETED");
    activityStyles.put(setApproved, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.GREEN));
    activityStyles.put(setPending, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.ORANGE));
    activityStyles.put(setArrived, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.PLUM));
    activityStyles.put(setCompleted, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.LAVENDAR));
    +}+
    +public void setactivityStyles(HashMap activityStyles) {+
    this.activityStyles = activityStyles;
    +}+
    +public HashMap getactivityStyles() {+
    return activityStyles;
    +}+
    +}+
    Now, go into the Bindings tab on the calendar page, double click the calendar binding, and specify the column you've defined as the calendar's Provider in the Tags dropdown.
    Should show colors.

  • [JSF 1.2] - Role Based Web Application: Whats the correct way of doing it?

    Hello,
    i have a web application that in some pages is role based. I have two database tables, Role and Permissions. Role can have 1..N Permissions and vice versa.
    In one page i need to render some forms depending on user role.
    What is the best approach to this?
    1. I have a sessionBean and on login load all the permissions (it's less secure but faster) based on user role;
    2. Everytime i use rendered="#{sessionBean.checkPermissions['can-create']}" i query the database. This checkPermissions gets the user role and retrieve all permissions of that user on demand;
    The first option is faster but while the user is logged if permissions changes we might have problems.
    The second, if i user 3 rendered attributes i do 3 queries to the database.
    Is rendered attribute the correct implementation?
    Regards.

    Yes, the rendered attribute is the correct way to accomplish this.
    As to the question of caching the result or querying the database each time, that is something that needs to be answered on an application by application basis.

  • Dynamically assigning variables based on condition in pl/sql

    I have a script which takes 6 input parameters but based on input 1 parameters 2 to 6 will be assigned to different variables. but the condition is not being checked during variable assignment phase. even if table_update is 'P' para,mater 2 is getting assigned to tariff_group instead of offer_id. Is there any way to solve this problem so that variables get assigned based on condition.
    table_update := '&1';
    if(table_update = 'T')
    THEN
         tariff_group := '&2';
         gf_version := &3;
         tariff_table_name := '&4';
         flag := '&5';
         if(no_rows_tariff(tariff_table_name, gf_version, tariff_group))
         THEN
              if(flag = 'I')
              THEN
                   tariff_column_name := column_tariff(tariff_table_name);
              ELSIF(flag = 'R')
              THEN
                   max_gf_tariff(tariff_table_name, gf_version, tariff_group);
              ELSE
                   DBMS_OUTPUT.PUT_LINE('Please enter correct option for update I- Insert R-Rollback');
              END IF;
         END IF;
    ELSIF(table_update = 'P')
    THEN
         offer_id := &2;
         gf_version := &3;
         promotion_table_name := '&4';
         flag := '&5';

    Although you do not say what your problem is, I suspect that it si something like this:
    SQL> !cat t.sql
    DECLARE
       table_update         VARCHAR2(1);
       tariff_group         VARCHAR2(3);
       gf_version           NUMBER;
       tariff_table_name    VARCHAR2(5);
       offer_id             NUMBER;
       promotion_table_name VARCHAR2(5);
       flag                 VARCHAR2(1);
    BEGIN
       table_update := '&1';
       IF table_update = 'T' THEN
          tariff_group := '&2';
          gf_version := &3;
          tariff_table_name := '&4';
          flag := '&5';
       ELSIF table_update = 'P' THEN
          offer_id := &2;
          gf_version := &3;
          promotion_table_name := '&4';
          flag := '&5';
       END IF;
       DBMS_OUTPUT.Put_Line ('TableUpdate: '||table_update);
       DBMS_OUTPUT.Put_Line ('TariffGroup: '||tariff_group);
       DBMS_OUTPUT.Put_Line ('GfVersion: '||gf_version);
       DBMS_OUTPUT.Put_Line ('Tarifftable: '||tariff_table_name);
       DBMS_OUTPUT.Put_Line ('OfferID: '||offer_id);
       DBMS_OUTPUT.Put_Line ('PromoTable: '||promotion_table_name);
    END;
    SQL> @t T TG1 1 TTN1 F
    old  10:    table_update := '&1';
    new  10:    table_update := 'T';
    old  12:       tariff_group := '&2';
    new  12:       tariff_group := 'TG1';
    old  13:       gf_version := &3;
    new  13:       gf_version := 1;
    old  14:       tariff_table_name := '&4';
    new  14:       tariff_table_name := 'TTN1';
    old  15:       flag := '&5';
    new  15:       flag := 'F';
    old  17:       offer_id := &2;
    new  17:       offer_id := TG1;
    old  18:       gf_version := &3;
    new  18:       gf_version := 1;
    old  19:       promotion_table_name := '&4';
    new  19:       promotion_table_name := 'TTN1';
    old  20:       flag := '&5';
    new  20:       flag := 'F';
          offer_id := TG1;
    ERROR at line 17:
    ORA-06550: line 17, column 19:
    PLS-00201: identifier 'TG1' must be declared
    ORA-06550: line 17, column 7:
    PL/SQL: Statement ignoredAs you can see, the initial assignments for compilation purposes are done prior to actually running the code, and the assignment to offer_id is failing.
    If I change offer_id to a varchar and quote the &2, then the compilation assignemnt works, and the actual logic of the script works:
    SQL> !cat t.sql
    DECLARE
       table_update         VARCHAR2(1);
       tariff_group         VARCHAR2(3);
       gf_version           NUMBER;
       tariff_table_name    VARCHAR2(5);
    offer_id VARCHAR2(3);
       promotion_table_name VARCHAR2(5);
       flag                 VARCHAR2(1);
    BEGIN
       table_update := '&1';
       IF table_update = 'T' THEN
          tariff_group := '&2';
          gf_version := &3;
          tariff_table_name := '&4';
          flag := '&5';
       ELSIF table_update = 'P' THEN
    offer_id := '&2';
          gf_version := &3;
          promotion_table_name := '&4';
          flag := '&5';
       END IF;
       DBMS_OUTPUT.Put_Line ('TableUpdate: '||table_update);
       DBMS_OUTPUT.Put_Line ('TariffGroup: '||tariff_group);
       DBMS_OUTPUT.Put_Line ('GfVersion: '||gf_version);
       DBMS_OUTPUT.Put_Line ('Tarifftable: '||tariff_table_name);
       DBMS_OUTPUT.Put_Line ('OfferID: '||offer_id);
       DBMS_OUTPUT.Put_Line ('PromoTable: '||promotion_table_name);
    END;
    SQL> @t T TG1 1 TTN1 F
    30  /
    old  10:    table_update := '&1';
    new  10:    table_update := 'T';
    old  12:       tariff_group := '&2';
    new  12:       tariff_group := 'TG1';
    old  13:       gf_version := &3;
    new  13:       gf_version := 1;
    old  14:       tariff_table_name := '&4';
    new  14:       tariff_table_name := 'TTN1';
    old  15:       flag := '&5';
    new  15:       flag := 'F';
    old  17:       offer_id := '&2';
    new  17:       offer_id := 'TG1';
    old  18:       gf_version := &3;
    new  18:       gf_version := 1;
    old  19:       promotion_table_name := '&4';
    new  19:       promotion_table_name := 'TTN1';
    old  20:       flag := '&5';
    new  20:       flag := 'F';
    TableUpdate: T
    TariffGroup: TG1
    GfVersion: 1
    Tarifftable: TTN1
    OfferID:
    PromoTable:John

  • How to get the current month for a variable based on info object 0FISCPER3

    Hie Gurus
    I am working on the financial reports i am failing to derive the Current month from the variable based on infobject 0FISCPER3 PERIOD .
    I would also like to get the same month from the prevoius year. Any ideas?

    If I understood correctly, you need in your repot
    Current Month Plan This year || YTD Plan This Year || Current Month Plan Last Year || YTD Plan Last Year
    Your variable 0I_FISCPER3 must be on the object 0FISCPER3 which is nothing but just the Fiscal Period. This variable is a user entry mandatory Interval variable.
    if you are entering a range in the input screen for this variable, you will get cumulative values. If you just need to get the value for a month in first column your report, you will have to create another variable of type Customer Exit which will read the "To value" entered for the variable 0I_FISCPER3 and columns for Current Month should be restricted on this variable.
    if you are entering a single value in the selection screen of this variable, current month column should be restricted on this variable with "Equal To" operation and YTD colmns should be restricted to "Less Than Equal to" operator with this variable.
    0FISCPER3 just have posting period and not year, so you will have to use varialbes for 0FISCYEAR separately.
    Please let us know if it helps or if you are using some other variable based on 0FISCPER3 or 0FISCPER.
    Regards,
    Gaurav

  • Dequeue (using a AQ Adapter) based on a "Variable" condition

    Hi,
    I use an AQ Adapter to dequeue messages from an AQ and send it to an BPEL process. I have setup the adapter for conditional dequeuing as follows:
    My message object has a field called "title" so in my adapter i use the Dequeue condition as below and it works perfectly:
    <jca:operation
    ActivationSpec="oracle.tip.adapter.aq.inbound.AQDequeueActivationSpec"
    QueueName="DETPAYLOAD_QUEUE"
    DatabaseSchema="APPS"
    DequeueCondition="tab.user_data.title='Test Case'"
    OpaqueSchema="false" >
    </jca:operation>
    My question is : Is it possible to configure the adapter based on a Variable in the BPEL process?
    For example: Can i use the DequeueCondition as : DequeueCondition="tab.user_data.title=Process_Variable" (where Process_Variable is a BPEL process variable that has been populated in the previous activity)
    I have tried some of the below ways to get this working but have not been successful so far. Has anyone tried this before?
    - DequeueCondition="tab.user_data.title=(String)getVariableData("Process_Variable")"
    - DequeueCondition="tab.user_data.title=:Process_Variable"
    - DequeueCondition="tab.user_data.title=@Process_Variable"
    Thanks,
    Amol

    That's the way.

  • What is the correct way to inform the controller of an exception in MVC?

    Hi this question has been on my mind for a while.
    Imagine you have a an application based on MVC (mode, view controller) design pattern.
    If a non-fatel exception is thrown in the model (e.g. a number format exception) what is the standard way to of informing the controller so that it can do something useful like display an error pop-up or 'gracefully' shut-down the application.
    The two ideas I came up with are:
    -Return -1 or some other variable in the 'catch' of the try/catch.
    Could be messy, every time you called a risky method you would have to wrap it in an if statement.
    -Declare the model as throwing the exception - that way the controller can 'catch' it and do something useful.
    Possibly makes the controller less cohesive.
    -Handle the error directly from the model by having it display a pop-up error message or forward to an error page etc.
    This would make the model less cohesive.
    The controller should still be informed for the exception so it can decide what to do next - if the exception occurred during form validation shouldnt the controller e responsible for redisplaying the form with an error message?
    Is there a 'best practice' of handling exceptions?
    Thanks
    Edited by: vijizzle on May 12, 2010 8:25 PM

    Just have it throw an Exception and let the Controller deal with it.
    Using a pop-up in the Model makes no sense to me. User interface is the View's job. Ultimately, an error pop-up may be presented, but the problem will be passed back to the View before that happens.

  • How many ways to read and write a local variable in a called VI?

    Ciao!
    I'm producing my first TestStand sequence. It is called "FirstAttempt" and it is made by a single step which calls a VI. One of the first dilemmas i encountered realizing this sequence is how to read and write a local variable (created going in Variables -> Locals ('FirstAttempt') -> <right click to insert local>) in the called VI.
    The first way (the only one i tried) is to create a control and an indicator on the VI front panel, connect them to their respective terminals in the connector pane and then specify (going in Step Settings -> Module) that these connectors (shown in the Parameter Name column) are linked to the local variable (selected in the Value column).
    The second way (not tried) consists in using TestStand API: create a Sequence Context reference on the VI front panel, link it to a property node in the block diagram, select the property "Locals" and extract from this the local variable name and value which, i think, can be readable and writable.
    So...
    Are the shown ways correct?
    Are there other ways?
    Knowing that a "local" variable can be considered "global" within the whole sequence, is there the possibility to simply create a reference to the local variable and use the reference in the called VI block diagram in order to save space in the connector pane (if using method 1) or in the block diagram (if using method 2)?
    Thanks!
    Message Edited by aRCo on 09-17-2009 05:09 AM

    Hi,
    Before TestStand 3 you would use the second way you quoted as its the only way.
    But now you would use the first way you quoted. You may still what to pass the SequenceContext if you were going to use the TestStand API. For TestStand 3.x and above you would use this way as the first chose. (Personnelly, I would not pass the SequenceContext into a VI if I know it was never going to be used in that VI.)
    Not sure I understand your final comment, maybe you are liking it to passing the reference of a control to a subVI so that the control can be updated from within the subVI.
    If this is the case and you had a situation where you had a step that was running in parallel with the rest of the steps in the sequence either as a separate thread or execution and were dependent on the contents of the  local variable changing from that parallel running step, then you would have to use the API SetVal method to change the local.
    Hope this is clear.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • OBIEE 11G Calculation the Correct Way

    Hi All,
    My requirement is like this that I want to calculate value Gross Profit which is simple Total Revenue - Total Expense. Now I want this to act as a Hierarchy i.e Gross Profit should be drill able to Total Revenue followed by Total Expenses. For this I created a Accounts Dimension table since no Drill Down facility is available on Fact Table(Therefore I had to move my Accounts to Dimension table rather than Fact Table). Now the problem is that there is no minus based aggregation present in OBIEE BMM layer because of which my all other sum based aggregation work correctly except where there is a negative based aggregation required like in the case of Gross Profit. Kindly Suggest what is the correct way to approach this problem. I am working on OBIEE 11g in this case.
    Warm Regards
    Abhishek Kapoor

    Financial reporting is difficult in BI because of the user preference of how to see signs on different accounts and requirements for adding/subtracting depending on the type of account.
    A few ways to approach:
    a. Use case statement to make total rev and total expense columns. Subtract to build a gross profit column. You can do this in the presentation services front end or the BMM.
    b. If you have opposite natural signs for rev and exp, you can create an account hierarchy in the account table which will net out to gross profit. Ex:
    Column 1 – account number
    Column 2 – hierarchy level 1, ex Gross Profit
    Column 3 – hierarchy level 2, ex Rev or exp
    Column 4 – account name
    Etc…
    c. Remember you can always build your own drilldown using navigation links to a report instead of the built-in drilldown.
    Good luck!

  • How to determine the length of variable based on the character contents

    Hi Experts,
    I need to determine the length of variable based on the character contents I am looking for.
    Example;
        lv = 'FENCE - Construction bond'
    Where I need to know the exact field length of 'FENCE -'.
    It's possible that variable will have different values in different lengths.
    Thanks.
    Kath

    Kathy Amion  ,
    hello Will you please elaborate ...!
    The suggestion for your proble as i understood it is you will have to split the string at seperator '-' in two say variable name and conten. and then  you will calculate the length of the VARIable name by using string function.

  • Correct Way to Look at ROWID value

    I found some sql and modified it that is suppose to allow you to look at the ROWID info of a table
    Can someone tell me why this does not work and what would be the correct way to get the info based on the ROWID ?
    Evertyime I generate the ROWIDs and try to enter one into the second SQL statement, I get nothing back
    Example:
    prompt
    prompt ******************
    prompt V$Session/DBA_Objects - Create RowIDs
    prompt ******************
    prompt
    select
         s.sid,
         s.terminal,
         do.object_name,
         row_wait_obj#,
         row_wait_file#,
         row_wait_block#,
         row_wait_row#,
         dbms_rowid.rowid_create ( 1, ROW_WAIT_OBJ#, ROW_WAIT_FILE#, ROW_WAIT_BLOCK#, ROW_WAIT_ROW# ) rowid_created
    from
         v$session s,
         dba_objects do
    where
         s.ROW_WAIT_OBJ# = do.OBJECT_ID
    order by
         s.sid;
    prompt
    prompt ******************
    prompt Get ROWID Info
    prompt ******************
    prompt
    select * from &table_select where rowid = '&rowid_created';
    Any assistance would be appreciated
    Thanks
    Jim

    Hi Miguel
    well i am using thread based processes into oracle and some of my users are getting CGI timeouts or else getting tired of waiting and trying to do the same task again through my web app so they try it again causing a lock problem
    I can see what is being locked down to the table but i wanted to know what data is being locked when trying to get updated, so i thought i could use the ROWID to look at the entry
    Thanks
    Jim

  • Activate or deactivate a condition based on Input Variable

    Hi,
    Is it possible to Activate/De activate a condition based on Input variable, if yes can any one tell me how this could be done...

    Hi... Is there any other round about way other than using a User exit????
    Basically this is what I am looking for
    Quest to User: Y/N
    if "Y" then Activate the condition and suppress the records based on the condition
    If "N" then do not activate the condition and publish all the records...
    Any thoughts....

  • Setting Scale Markers On Charts Based on Initialization Variables

    I'm currently building a chart and would like to set scale markers based on some variables I have created in an initialization block.
    I've tried setting a variable expression for the scale marker and using the name of the variable, but it's not showing on the chart.
    Any suggestions?

    Thanks for the suggestion, but that is not really feasible.
    Maybe there is a better way to do it though, my problem is that I want to color code sections of my chart based on various statistical data.
    I've created several SQL queries to get this information and am currently populating repository variables with the data.
    I'm aware that I can use the queries directly in the scale marker customization window, but given the volume of what I'm processing this may cause slowdowns in displaying the data ( and also cause needless repetition in the queries)

Maybe you are looking for