Change Assign Operator Dynamicly

Dear Folk,
Please consider following part of statement at data model sql query statement....
having sum(d.sal_qty) > :p_2
I want to give the opportunity to user to change the assigned operator '>' what I have used. User can change his/her operator like '<' or '=' or '>=' or '<='. So, :p_2 value will differ by operator in a same report.
I can not make this solution. Please help me providing any idea to change the operator.
Thanks
ALO

Hi,
Try to use the all having statement as a parameter.
Example:
select a.code,sum(a.amount) from table1 a
group by a.code
&P_2
Here P_2 will be an lexical parameter (character, lenght=200 for example)
and can be filled in afterpform trigger as follows:
:P_2 := ' having sum(a.amount) ';
if :P_operator = '=' then
:P_2 := :P_2||' = '||:P_value
else :P_operator = '>' then
:P_2 := :P_2||' > '||:P_value
end if;
end if;
Best regards,
Gicu

Similar Messages

  • How to change VO's dynamically for a item for each row in advanced table?

    Hi All,
    We had a requirement to filter the employees based on the search criteria table. I am using advanced table for developing search criteria.
    In that table I am having three columns. Operator (messagechoice), Criteria Type (messagechoice), and Criteria value (messageLovInput). Also 'Add Another Row' functionality is available.
    My requirement is:
    First Row:(Initial Row)
    When the user selects a value in Criteria Type, only the values that are relevant to that type should be displayed in the Criteria Value.
    Second Row: (when the user selects Add Another Row button)
    When the user selects a value in Criteria Type, only the values that are relevant to that type should be displayed in the Criteria Value.
    The problem I am facing here is, the Criteria Value column is pointing to only one VO at design time. But wee need to change that VO dynamically without disturbing other rows depending on the Criteria Type value.
    Is it possible to do so?
    Note: User can add n number of conditions as he want.
    Can anyone help how to acheive this.
    Regards,
    Sundeep.

    Check Dynamic Poplist section under Standard Web Widgets in Chapter 4 of OA Framework Developers guide.

  • How to generate a PDF 417 Barcode by assigning a dynamic value at runtime?

    PDF 417 Barcode Description given in the Livecycle Designer 8.2
    : PDF 417 Non-Scriptable Barcode. Value must be assigned to this barcode at design time, and this barcode will not update after form object value changes.
    And my question is how to generate a PDF 417 Barcode by assigning a dynamic value at runtime?

    All the information you described points to the problem that reports seems can't generate to a file which already exist. You can verify that by simply doing
    r30run32 C:\AC_REPORT.REP DESTYPE = FILE DESFORMAT = PDF BATCH = YES' desname=c:\temp\ac_report.pdf
    several times. If first time the report is successfully generated in c:\temp\ac_report.pdf, but not the second, third time, then it looks like there is a bug on reports r30run32 executable.
    You may try to find any latest patch for Reports 3.0 to see if patch can solve you problem. But keep in mind Reports 3.0 is de-supported, you are better to move to 6i or 9i reports.
    Thanks,
    -Shaun

  • Error while assigning Operating concer to Controlling Area

    Hi...
    while I am trying to assign operating concern to controlling area, the system is showing the following error message.
    Diagnosis
    Controlling area 7500 and operating concern 7500 have different fiscal year variants (01 and K4). However, for cost center assessment, settlement, and many other types of postings to Profitability Analysis, the controlling area and the operating concern must have identical fiscal year variants, otherwise error messages or serious data inconsistencies can occur.
    But i already changed fiscal year variant from K4 to 01 in Operating concern and i run the generate operating concern environment also. still the system is showing the same error message.
    Is there anything more i need to do after changing fiscal year variant in Operting concern.
    Please help me.
    Thank you,
    Regards,
    Santosh

    I have got the solution.
    Thank you,
    Regards,
    Santosh

  • How to change the image dynamically depend upon the input parameter

    Hi All
    I have one report running depend upon the Organization specific, I have 15 operating unit and 15 different logo for each operating unit.
    How to change the Logo dynamically depend upon the input passed by the user.
    If I have three or four logo i can add in my layout using if else statement and its works fine but i have more that 10 logos so its no possible to keep these in My RTF Template.
    Is it possible to change the logo according to the input without keeping this in Template.
    I have seen this link but its not working fine
    http://erpschools.com/articles/display-and-change-images-dynamically-in-xml-publisher
    Regards
    Srikkanth.M

    Hi,
    I have not completed fully,so sorry i cant able to share the files, could you please give me some tips and steps to do.
    Without having the logo in RTF if it possible to bring the logo depends on the user input (Ie Operating unit).
    Regards
    Srikkanth

  • Cannot assign operations into an RPC Service (x)

    I've been running a flex application for years now, and added a couple lines of code to it and all of a sudden started getting "Cannot assign operations into an RPC Service (x)" and "Cannot assign operations into an RPC Service (y)" out of no where.  I can't figure out whats happening.  I even took out the code I added before it started happening and its STILL happening... what is this? its the first time I've seen it!

    FYI: It appears to be happening when I try to change states: currentState = "XXX"

  • Change subgrid view dynamically by Javascript

    Hello,
    In my current project Client
    would like an activities view that shows related activities PLUS some fields from those activities.
    Please let me know how to change subgrid view dynamically.
    we are trying to get the same results as in the out of the box subgrid where you get the regarding activities but we want some additional fields such as the To from the phone
    call activity
    I am using below code to achieve this
    // JavaScript source code
    //Change the Fetch XML and set the subgrid ID
    function UpdateSubGrid()
        var SubGrid = document.getElementById("Activities");
        if (SubGrid.readyState != "complete")
            //The subgrid hasn't loaded, wait 1 second and then try again
            setTimeout(UpdateSubGrid, 1000);
            return;
        var fetchXml = "<fetch version='1.0' output-format='xml-platform' mapping='logical' >" +
      "<entity name='activitypointer'>" +
       " <attribute name='subject' />" +
        "<attribute name='ownerid' />" +
        "<attribute name='prioritycode' />" +
        "<attribute name='regardingobjectid' />" +
        "<attribute name='activitytypecode' />" +
        "<attribute name='statecode' />" +
        "<attribute name='scheduledstart' />" +
        "<attribute name='scheduledend' />" +
        "<attribute name='activityid' />" +
        "<attribute name='instancetypecode' />" +
        "<attribute name='community' />" +
        "<order attribute='scheduledend' descending='false' />" +
        "<filter type='and'>" +
        " <condition attribute='isregularactivity' operator='eq' value='1' />" +
        "</filter>" +
        "<link-entity name='phonecall' from='activityid' to='activityid' visible='false' link-type='outer' alias='phonecalllinkage'>" +
        " <attribute name='from' />" +
        " <attribute name='to' />" +
        "</link-entity>" +
        "<link-entity name='task' from='activityid' to='activityid' visible='false' link-type='outer' alias='tasklinkage'>" +
        " <attribute name='percentcomplete' />" +
        "</link-entity>" +
        "</entity>" +
    "</fetch>";
       // fetchXml
        //Set Fetch XML
        //Inject the new fetchXml..
        SubGrid.control.SetParameter("fetchXml", fetchXml);
        //Force the subgrid to refresh
        SubGrid.control.refresh();
    Many thanks in advance.
    Harsha

    Hi Pedro,
    Thank you for your response.
    Actual requirement is Client
    would like an activities view that shows related activities PLUS some fields from those activities. I tried out of box this first but it is not achievable because some entities are not available in entities list to select columns.
    I want to add coulns from related entity inside grid.
    Please let me know how I can achieve this through IFrame, Plugin or ssrs report?
    Thanks in advance.
    Harsha

  • How to calculate the Percent change in a dynamic

    hi All,
    I'm trying to get the percent increase/change of two dynamic
    colums.  In my report, the user has a checkbox where he can select two colums to calculate the percent growth.
    My DataSet is PilarName, Calification(is a decimal value) and Period (this is a string).  I created the Matrix this way:
    PilarName [Period]
    [PilarName] [Calification]
    Which give me these values:
    So, now I need to create another column to calculate the percentage change between these two colums.  I tried this:
    I added a Adjacent column group for Period column and I grouped by the calculated column "ColumnDiff".  Add the following expression.
    =(SUM(Fields!Calificacion.Value)- Previous(SUM(Fields!Calificacion.Value),"ColumnDiff"))/Previous(SUM(Fields!Calificacion.Value),"ColumnDiff")
    After that I get: 
    I'm getting the sum of the two columns instead.
    Any clue about what I'm doing wrong? Please help me, I've been looking for the answer but any solution works for me.
    Luis Carlos

    Hi Luis,
    According to your description, you have a report with different dynamic columns. Now what you want is show your user percentage growth in your matrix report after your user select two of those columns (I think you may use parameter to achieve your “checkbox”
    function). Is my understanding correct?
    In Reporting Service, we can’t calculate dynamic columns with our build-in arrogation functions. So we need to add custom code into our report, and call those functions which defined in custom code in our expression. We have tested your scenario in our local
    environment. Here are steps and screenshots for your reference.
    Go to your Report Properties, add the custom code below into your report:
    Dim Shared Num1 As Double
    Dim shared Num2 As Double
    Public Function GetCalification(Calification as Double,Type as String,Type2 as String) 
    If Type = Type2 Then
       Num1=Calification
    Else
       Num2=Calification
    End If 
    Return Calification 
    End Function
    Public Function GetPec()
    Return (Num2-Num1)/Num1
    End function
    Create a matrix. Put PilarName into Row field, put Period into Column field. In Data field, put the expression below into the textbox:
    =Code.GetCalification(Fields!Calification.Value,Fields!Period.Value,Parameters!Period.Value(0))
    In our sample report, we created a parameter (named Period) for selecting two columns. You can replace “Parameters!Period.Value(0)” with your own parameter.
    Add an outside column at right (%Growth), put the expression below into the textbox:
    =Code.GetPec()
    Save and preview. The matrix and result looks like below:
    Reference:
    Custom Code and Assembly References in Expressions in Report Designer (SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Is there any way to change user operations on multiple tracks at once?

    I have a complex project (99 tracks, dozens of menus and scripts). I need to make one version of this DVD for the end client (teenagers at health clinics) who will be forced to view it in a specified way, and another version for educators (staff at the clinics) who will be allowed to fast-forward and have access to a menu from which they can jump to different points in the DVD.
    I have different menus to serve as "first play" for these different versions so that I can easily switch between versions when burning disc images, and I have set up GPRMs to make navigation different for the two versions automatically. My problem now is that I want to disable forward scan, next program, root menu, and title menu for the client version. As far as I can tell, I have to do that independently for every single track and menu. Bleah. This is especially annoying since the DVD is still in development, so I am continuing to change small things and will need to keep both versions up to date as I do.
    Is there any way to select multiple tracks/menus and change user operations on all of them? Or any other work-around or script that could do it? I thought this would be a perfect task for the automator, but I'm not very familiar with that application and don't know how (or if it's possible) to create new actions other than the ones that are available.
    Any ideas?
    thanks!
    Julie

    Thanks. But the disc inspector only appears to let me change things like where the title menu button takes you, not detailed user operations. I have pretty much given up on this being anything other than a giant hassle, but if anybody knows whether a script could do this, I would be eternally grateful.

  • How to assign a dynamic value to the value property of a button ?

    Hi Folks,
    I have a need, can i know how to assign a dynamic value to the value property of a button. Scenario is like follows...
    This is a struts based web application
    1. I have a file which consists of login user details (user name and his previlages) for a web application.
    2. I got those user details, into a List.
    3. When a user logged into the web app, in the home page there are few buttons. The type and number of buttons shown depends on the type of user/ user. (Buttons have different combination and the number of buttons available are not constant, they will vary from user to user).
    4. for each button, there will be a different action. I can pass the value of a button to an action class, but here button must have a dynamic value.
    Here is my test code:
    <%
    if (List != null)
    for (int i = 0; i <List.length; i++)
    %>
    <html:submit property="rduname" value= "<%=List%>" onclick="return submitRdu('<%=List[i] %>');"/>
    <%
    %>
    But my problem is how to assign a dynamic value to the value property of the button ( i know 'value= "<%=List[i]%>" ' will not work, just wanted show you guys).
    Thanks in advance,
    UV
    Edited by: UV_Dev on Oct 9, 2008 2:15 PM

    Let me try i know am not good at JSP but do we need double quotes here
    value= <%=List%>i think JSTL should help you about the dynamic thing                                                                                                                                                                                                                                                                                                                       

  • How do I download after changing my operating system from a 32 bit to a 64 bit system?

    I changed my operating system from a 32 bit to a 64 bit system and I need to re-purchase or trade my purchase for a different download -fridayjunior

    Hi fridayjunior,
    Which Adobe software are you trying to install?
    All 32 bit applications are compatible and can be installed on a 64 bit machine.

  • How to change the images dynamically in a table.

    Hai,
                     How to change the images dynamically in a table based on the condition in webdynpro abap.
    Edited by: Ravi.Seela on Oct 13, 2011 2:17 PM

    This has been much discussed earlier. Do search posts.
    For your scenario i would do the following.
    inside your node which is binded to the table, i create a new node image with cardinality 1 ..1 and a attribute called path of type string.
    create a  supply function for the node image .
    Supply method now has a Element (Parent element ) and node.
    Based on your record in element, set the right image source to path attribute and bind the node.
    This will make sure that the framework calls the image supply function for every row in a table.

  • HT203175 My Ipod does not sinc with all of my Itunes library, only the first few albums. I recently changed my operating system to XP from Vista, which was a pain, and due to my fault had to reinstate most of my albums and all of the playlists.

    Ipod does not sinc with all of my Itunes library, only the first few albums. I recently changed my operating system to XP from Vista, which was a pain, and due to my fault had to reinstate most of my albums and all of the playlists. How do I get my Ipod to sinc fully when I access Itunes?

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    tt2

  • How to change VO query dynamically

    Hi,
    Iam trying to change the VO query dynamically. My req. is I have 6 columns in a header page 3 columns(default single column) for sorting purpose and another 3 columns(default single column) for data querying purpose.
    al these are in one view so I have created one VO.
    Sorting Searching
    A A
    B B
    C C
    When I give any values in Sorting and hit submit button VO query should change dynamically.
    I have searched older post regarding this.
    My query is some thing like this
    SELECT * from cust_table where a = NVL(:1 ,a)
    UNION
    SELECT * from cust_table where a<> NVL(:1 ,a)
    order by a
    Iam trying to pas the below part dynamicaly in my AM method
    vo.setWherecaluse("where a = NVL(:1 ,a)
    UNION
    SELECT * from cust_table where a<> NVL(:1 ,a)
    order by a ")
    and trying to pass the params to that query. But it is not working.Giving error "Bind variable could not find"
    Can any one suggest how to solve the issue.
    Thanks,
    Mahesh

    Hello Ajay,
    THanks for your response.
    My vo query is select col1,col2,col3,col4,col5,col6 from cust_table;
    and and changing vo.setwhereclause dynamically based on different scenerios.
    in one scenerio i need my query to be some thing like
    SELECT col1,col2,col3,col4,col5,col6 from cust_table where a = NVL(:1 ,a)
    UNION
    SELECT col1,col2,col3,col4,col5,col6 from cust_table where a <> NVL(:1 ,a)
    order by a
    so can i concatenate my vo.setwhereclause like *"where a = NVL(:1 ,a) UNION SELECT col1,col2,col3,col4,col5,col6 from cust_table where a NVL(:2 ,a) order by a"*
    in the setwhereclause iam setting bind variables is this method correct? Hope it is clear pleaselet me know if it is not clear I will explain in detail.
    Thanks,

  • How change the graph dynamically based on pivot table.

    Hi,
    My Report having pivot table and bar chart. Organization Name column set as pivot table prompts in pivot table.So Organization Name is appear as dropdown list.If i choose the diffrent Organization Names the pivot table data is according to the Organization Name but no changes in chart.How change the Graph dynamically based on pivot table.
    Please help on this.

    ok.I created pivot table with 4 columns and created chart using pivot table chart options but all 4 columns are displaying chart.But I need only 2 column in chart ..unable to edit the only chart in pivot table.Please help on this.Thank you..

Maybe you are looking for