Web module generator: conditional formatting

Hi,
I'm trying to generate the following behaviour in a web module. There is a status code in the table and I want it to be colored red when status = 'error' and green when status = 'running' else standard color. The item property "Formatting" can't do this conditionally. Is there a way to do the trick using application logic ? It should be done server side in PL/SQL but there are no item level PL/SQL events. And on module component level I don't know how to formulate the code using WSGFL. Client side JavaScript seems not to be apt, isn't it ?
any help appreciated
regards
Thomas Dombrowski

The trick to this is to write your own server-side function. I have one called HIGHLIGHT in my LOCALWEB package, which you can get at http://www.smdi.com/employee/JohnF/sourcecode/localweb.zip. This takes three arguments, the condition for whether to apply the highlighting, the field or text to be highlighted, and an optional parameter to specify the highlight - a color or text style like bold or italic. The default is to conditionally put <strong> tags around the text.
You will need to add the package name to the list in the PKGLST preference. Look this up in the Design Editor's help, if you don't know how this works.

Similar Messages

  • Web module generator security conflicts with DAD

    Hi,
    using the WSGSEC package for web module security, I'm running into issues related to the mod_plsql configuration. There are 3 values for setting session state behaviour (PlsqlSessionStateManagement) following to the dads.README:
    1. StatelessWithResetPackageState (is default)
    2. StatelessWithFastResetPackageState
    3. StatelessWithPreservePackageState
    1. and 2. work well when switching security off (preference SECVAL=N), but prevent successful logon (cookie cannot be stored or read correctly) and logon screen returns ever and ever.
    3. allows logon but brings the "erratic behavior" mentioned in the README, mainly after DML operations.
    How can I manage the session state for the generated application? Logon needs a preserved state, the generated application needs cleaning and resetting. Now, we are developing on Windows 2003 Server but production will run on HPUX.
    regards
    Thomas

    Sorry,
    some minutes after posting this question I found the hidden chapter on Security in the online help. I hope to mange it now with the information provided.
    regards
    Thomas

  • Web module generator

    Hi,
    Web modules have no built-in security functionality as you know and therefore a massive security hole. Is there a trick to add a password fence which works on every single module, so that no startup URL can bypass. I'm sure there is a solution around. HTML-DB has a built-in layer for authentication. I don't need user autentication but one simple (hidden) password input.
    regards
    Thomas

    Sorry,
    some minutes after posting this question I found the hidden chapter on Security in the online help. I hope to mange it now with the information provided.
    regards
    Thomas

  • Web modules: return hyperlink not generated

    Designer Version 10.1.2.0.2 (shipped with ODS10gR2):
    When generating web modules, the preference "Build return hyperlinks (MODBRL)" doesn't show the expected behaviour. No return hyperlinks are generated at all. I didn't use web module generator with earlier releases, so, I don't know if it was different there.
    regards
    Thomas Dombrowski

    This feature uses a cookie to save the return hyperlinks that are to be displayed on the subsequent screens. Unfortunately, many people disable cookies in their browsers for security reasons. That could be why you aren't seeing the return hyperlinks. The feature does in fact work, but not for everyone, which is why I started hand coding return hyperlinks in the user text instead. It is more work, but more reliable.

  • SharePoint 2010 list view web part not showing conditional formatting

    when I create conditional formatting in custom list is working fine & when it call through web part page (Data view web part) conditional formatting not showing. data is showing without conditional formatting.
    Dinuka M.

    When you use conditional formatting on some page it is writing inline CSS codes inside that page. thats why when you create a new page and add the same web part to that page, you must edit that page to apply conditional formatting to that
    web part.
    Best Regards, Mustafa Yılmaz MCITP, MCPD | www.mustafa-yilmaz.org | www.sharepointciyiz.biz
    When you say edit the page, do you mean edit it in SharePoint Designer, or in SharePoint itself. And is it a case of just editing, then saving the page and it will apply the conditional formatting, or is there a specific property you need to edit, and if so,
    what is it?

  • Using conditional formatting on negative values in Web Analysis 931

    Hi All,
    Can I please have your thoughts on the below:
    We open a web analysis report in Analyze View.
    The scenarios are in the columns and we are trying to apply conditional formatting on negative values.
    We right click the scenario in the columns and click Formatting...
    We then tick the Conditional Formatting check box and we want to add a condition on negative numbers.
    However we can only enter positive values as the - sign is not accepted. This means we cannot apply conditional formatting on negative values.
    Does anyone know how this can be done? Am I missing the obvious?
    Thanks for your help.
    Seb

    Gotcha. Ok. Have you thought about creating a new hidden calculated ColumnB whereby you multiply the values in ColumnA by -1 and then set your formatting based on the result in ColumnB. If the value in B is positive then you know A was a negative number so you can go from there, in a round about way? I don't have time at the moment to think it all the way out but something to think about. If your formatting involves just colors you could use Traffic Lighting to set the color on ColumnA based on result in ColumnB. Traffic Lighting out of the box is limited but it's a start until you have time to build your own.
    -Karen

  • Conditional formatting in Webi report

    Hi,
    I have a  requirement wherein I need to conditionally format column to make the coulmn value "red colored"  as per a certain condition and also need to display a small image next to the column value. Does anybody have an idea to achieve this?
    Thank you,
    boe user1

    Hi,
    You can use Alerters for the conditional formatting.
    Click on the Alerter icon from the tool bar.
    New-> define condition -> click ok for default formatting else click on format.
    You can define any formatting to the column values you want e.g you can change the font color or you can change the back-ground too.
    To display a image you can add one more column and insert it as a background image. If this is also conditional then again insert it using alerter or you can write if else formula with image url.
    Regards,
    Rohit

  • XStep conditional formatting. Can it be determined at run time ?

    Does anyone know of a way to put conditional formatting into an XStep generated table output. For example, this is what we are trying to do:
    - At some point after an order is generated and released, materials are issued to it.
    - We have created a function module that reports back the list of all materials issued.
    - The FM also checks to see if the material was planned in a reservation.
    - If a material issued was not a planned material we want to list it in RED.
    In the XStep repository, I can simulate a table output using parameter PPPI_FRAGMENT_HTML, and can change font color by giving it a value like
    <div style="color: red">TEST123</div>
    And I get TEST123 displayed in RED.
    I also get TEST123 displayed in red on the generated PI sheet, if I put the put the HTML string above into the XStep as a fixed value.
    But if I program the FM to return this string, then I get the entire string output in the table field and the font color is not changed to RED.
    Edited by: Mike Rupp on Oct 14, 2011 6:31 PM
    Edited by: Mike Rupp on Oct 14, 2011 6:36 PM

    I got a response at the XStep Cafe and thought it might help others if I share it here.
    Arne Manthey:
    I assume that you are also using PPPI_FRAGMENT_HTML for the parameter to which the FM returns your string. If you valuate this parameter manually it is internally handled as a long text. However the function module will most likely return just a string value and these are probably not recognized as a long text. I do not have any idea how to valuate a long text with a FM when the PI Sheet has already been generated. The only thing I did successfully was to generate HTML text during generation (although not with XSteps). But in your case this would not help, yes?
    The general problem with long text elements is that they are really meant for initial valuation only and not for changing back and forth.
    Another way of doing conditional formatting would be to use some Stylesheet magic which evaluates a status parameter you would set by a function module. This would most likely also include some Javascript to make the change happen. Please follow that path only if it is really necessary because Stylesheet stuff is not easy to handle.
    mrupp:
    Thanks Arne.
    We decided to just add an additional table column with an alert message when needed to flag Unplanned Materials and/or Expired Shelf Life. I have played around with Stylesheets & Javascript a bit and agree that it is not worth it in this case.

  • V2.3 vs v2.4 web-modules in NetBeans

    I'm using NetBeans v3.6 IDE (on Win-XP).
    When I create a JSP-project, I first do the 'convert filesystem to web-module'
    operation, which generates the WEB-INF sub-directory and creates
    (among other things) a file named 'web.xml'. Inside that file, is information
    relating to whether the webapp will be v2.4 (vs v2.3) conforming.
    (Right now, it is generating v2.4 info.)
    What I do NOT understand is what knob(s) to tweak if/when I want a
    project to use the older V2.3 info.
    (Simply 'editing' the generated web.xml file is clearly NOT what I think
    is intended, as the FORMAT of the v2.3 does NOT have an explicit
    version=x.y string like it does in v2.4.)
    Also, I believe there is a later-step in Netbeans web-module development
    where you do some other operation (that copies 4 .JAR taglibs into the
    project area), and I suspect that this latter step is DEPENDENT on
    first getting the v2.3 vs v2.3 decision setup correctly.
    Can someone please CLARIFY my suspicions, and explicitly
    state what these two steps are and how to be able to
    have 2 separate web-module projects, where one proj
    is 2.3 based and the other is 2.4 based?
    TIA...
    Dave

    Hi Dave,
    I'm afraid that NetBeans 3.6 doesn't have such feature to create your web.xml according to J2EE 1.3 (i.e. Servlet 2.3). AFAIK there is a description in help topic, how to upgrade/downgrade J2EE level of your web module.
    However there is such feature in NetBeans 4.0 and 4.1 - you can set up your project's J2EE version when you create a project.
    -Karel

  • How do I apply conditional formatting using SharePoint Designer 2013?

    I'm attempting to apply Conditional Formatting to a list view web part via SharePoint Designer 2013, and I can't seem to find the option to do so.
    I've a horrible feeling I'm just being daft, but here's what I've done so far:
    - Created a new page (I've tried both web part and wiki)
    - Added a list "App part" and saved the page
    - Checked-out and opened the page via Designer
    - Clicked the "Edit file" option
    - Selected the XsltListViewWebPart tag
    So far I can't find any options to add it. If I open the Conditional Formatting pane via the View menu it tells me the following:
    > To use conditional formatting, select an HTML tag, data value, or
    > range of text, and then click Create to specify formatting options.
    I've tried selecting the web part tags in all manner of combinations with no luck. In previous version I would have simply selected the previewed data rows in the now-absent Preview pane.
    Am I missing something?

    Create and edit a Wiki Page
    Click Inset > Data View and Select “Empty Data View”
    Click Inside the <DataSources> tags </DataSources>
    Click Insert > Data Source “Your Data Source Name”
    Hold down Ctrl button and select the Rows in the order you want them to appear from your “Data Source Details” Window.
    After the Rows are selected click on the drop down “Insert Selected Fields as…” at the top of the “Data Source Details” Window. 
    Select “Multiple Item View” option (This will create the xsl where we need to add the conditional formatting to)
    Find the <tr> tag that contains the Row Data.  Insert the following right below the <tr> tag:
    <xsl:attribute name="style">
    <xsl:if test="@FieldName = 'Something'">background-color: #FF0000;</xsl:if>
    </xsl:attribute>
    I hope this helps.  I figured this out by using the old 2010 Designer to figure out the where to place the code and how to do this.

  • How to reset a count variable in a conditional format trigger

    I am using a conditional format trigger to eliminate sections of a report where there is no data. The trigger is automatically generated by reports (shown below). the condition is :com_count = '0' therefore no record, no display of section - if :com_count>0 then data present and display record.
    It works fine eliminating the sections - until actual data is found - and count is set to 1 and it displays the record. The problem is that once :com_count >0, then the section displays throughout the rest of the report whether there is actually data or not.
    It seems that :com_count needs to be reset to 0, but when I try to do that, it throws an error stating that :com_count is a read only variable.
    I am new to PL/SQL so can anyone suggest how I can reset the :com_count to 0 each time the trigger fires with :com_count = 1?
    Any help would be appreciated. Thanks,
    Glenn
    The conditional format trigger is:
    function M_G_COM_RANK_GRPFRFormatTrigge return boolean is
    begin
    -- Automatically Generated from Report Builder.
    if (:COM_COUNT = '0')
    then
    return (FALSE);
    end if;
    return (TRUE);
    end;
    The count
    It works perfectly

    wher is your COM_COUNT defined?
    If should be defined in the datamodel in the "mastergroup" of the "detailgroup" of which you want to count the records.
    If you do so, there is a property of the item "Reset at" ( which is by default set to "Report") and you then can change it to the name of the mastergroup. So every time a new record is "active" in the mstergroup, the count-item will be reset to 0.
    hope this helps

  • Error in running a URL for Web Module Project with a JSP

    Hi Experts,
    I created a Web Module Project with name "WebModuleProject".
    I created a jsp file naming "test_jsp" inside it
    Then i created a Web Archive for it which resulted in a WebModuleProject.war file.
    I then created an Enterprise Module Project with name "EnterpriseWebModule"
    Then i linked the "WebModuleProject" whith this project.
    I created an EAR for this project.
    Deployed that EAR on to hte J2EE Engine.
    Now on applying the following url:
    <a href="http://server:port/WebModuleProject/test_jsp.jsp">http://server:port/WebModuleProject/test_jsp.jsp</a>
    i m getting the following error
    404 Not Found
    The requested resource /WebModuleProject/test_jsp.jsp is not available
    Details: File [WebModuleProject/test_jsp.jsp] not found in application root of alias [/] of J2EE application [sap.com/com.sap.engine.docs.examples].
    Please experts help me to dig out this problem
    Can anybody suggest me why i m getting this error? And how to resolve it???????

    Hi Saurabh,
    In SMICM transaction code we have to maintain the parameters in order to run the web report in the specified format.
    i am listing some parameters in the below, Please have a look and see whether it can help u out .....
    Services
    icm/server_port_0     = PROT=HTTP,PORT=8000
    icm/server_port_1     = PROT=SMTP,PORT=0
    HTTP settings
    icm/HTTP/max_request_size_KB   = 102400
    icm/HTTP/j2ee_0                = PREFIX=/,HOST=localhost,CONN=0-500,PORT=50000
    icm/HTTP/server_cache_0        = PREFIX=/, CACHEDIR=/usr/sap/BSD/DVEBMGS00/dat
       a/cache
    Misc
    icm/host_name_full             = cauvery.com
    icm/cancel_strategy            = cancel requests without session (stateless)
    rdisp/plugin_auto_logout       = 1800
    is/HTTP/virt_host_0            = :;
    is/SMTP/virt_host_0            = :;
    Once after maintain the parameters go and check in the SICF transaction code SAPBW---BEx + right click + test service. And check whether it is opening in the required URL path.
    Regards,
    Vara Prasad.

  • Error while processing conditional formatting formula in crosstab

    This conditional formatting formula must return one of the following Color Constants: ' A number, currency amount, boolean, date, time, date-time, or string is expected here. Details: errorKind
    The above error is displayed on the the Business Objects Report Server when running my report.
    The XI server version information is as follows:
    BusinessObjects Enterprise XI Release 2
    Business Objects
    11.5.0.3135
    20060628
    Crystal Reports XI Release 2
    Business Objects
    11.5.0.31327
    20060628
    My IDE is Crystal Reports 2008.
    The error is being generated for the following conditional formatting formula which is in my crosstab:
    evaluateafter ({@concatAppTypeAppMethod});
    if CurrentRowIndex = 1 then
        color(0,153,153)   
    else if CurrentRowIndex = 2 then
        color(168,146,101)
    else if CurrentRowIndex = 3  then
        color(0,51,153)
    else if CurrentRowIndex = 4  then
        color(204,51,51)
    else
        color(153,153,153)
    This formula is applied via the Crosstab "Format Field>Font" tab.  In the report developer (Crystal 2008) the report runs without error.  When deployed to the server it fails with the above error.
    Heres the details of {@concatAppTypeAppMethod}:
    whileprintingrecords;
    "Designs filed " + {Command.APPLICATION_METHOD}
    The crosstab is structured as:
    Row = {@concatAppTypeAppMethod}
    Column = {@getMonth}
    Summary = Count of {@concatAppTypeAppMethod}
    Details for  {@getMonth}:
    right(totext(year({Command.ACN_COMPLETED_DATE}),"#"),2) + totext(month({Command.ACN_COMPLETED_DATE}),"0#")
    The above functions Row i.e. {@concatAppTypeAppMethod} and {@getMonth} use fields from the SQL command. 
    {@getMonth} parses the ACN_COMPLETED_DATE field, obtains the record month and year and concatenates these as a string which can be displayed as follows in the crosstab:
    May-08, Jun-08 etc.
    {@concatAppTypeAppMethod} parses the APPLICATION_METHOD field and obtains the application filing method i.e. Online or Internally and concatenates the pretext "Designs filed " to the filing method (also a string).
    I have tried various combinations of whilereadingrecords, whileprintingrecords and evaluateafter() with no success.  The problem occurs because the conditional formatting formula is being executed before the records being formatted are ready. 
    I believe this is a problem with the crystal reports software and/or XI server. 
    Please prove me wrong.

    Hi Raghavendra,
    Thanks for your prompt answer!  Can you confirm?  Is it because I'm using calculated members in the report and these are not support by the XI server specified in my error report above?
    If so, do you have any suggestions with regard to how I might be able to create a graph with the following attributes:
    Show summary (count) of records per month per application method (i.e. online or internal. this is a database field retruned by the SQL command).  In addition I need to add a series to the graph that shows the totals number of records per month irrespective of the relative application method (i.e. sum of online and internal) and finally I need to show the total number of online applications (i.e. application method = online) as a percentage of the total number of applications for the month.

  • Does Conditional Formatting does not work in HTML report editor - BO 4.1

    Hi
    I have just upgraded to BO 4.1 from BOXI 3.1
    I see conditional formatting option is grayed out for me in BO 4.1
    I dont have java installed and running launchad on HTML (Preference ->WEBI-> Modify Report -> HTML )
    Is there any relation between Applet option and Conditional formatting or is there anything wrong with Access which i need to correcr explicitly as compared to BO 3.1 ?

    Hi Saurav,
    This is expected behavior; We can modify the Conditional formatting only though Applet mode or using Webi Rich Client.
    For more feature differences between Viewers go through following link;
    http://scn.sap.com/community/businessobjects-web-intelligence/blog/2013/12/16/feature-differences-between-the-web-intelligence-clients-bi41-sp02
    Regards,
    Veer S.

  • HT4648 So if you import a numbers document from a mac to iPad which has a conditional format rule such as a cell with a score between 1-10 fills with the colour black will still work on the iPad? Not being able to edit it just means you can't change this

    I want to use numbers on my iPad mini for a team I coach. I have a spreadsheet on my mac I want to import onto the iPad mini for players to enter in wellness ratings. On this spreadsheet (on the mac) I have a conditioning formatting rule that when a player enters in their numbers the cells fill with black so others can't see their entries (to maintain privacy). Will this function import across onto iPad numbers? From the discussion I saw on this site it only partly answers my question stating "it cannot be edited" does this mean the conditional formatting rule cannot be changed and therefore will still work or the whole spreadsheet can't be edited and you can only view the spreadsheet and make no new entries to it?

    Yes, I have posted this thread to different forums after I realized that Lenovo "customer care" is not likely to help me out and even wirelessforums.org members couldn't come up with any ideas for days, that's why. I have already written that helper applications like SMAC (or etherchange or macshift) don't work, because they do the same thing in the system as I change it in the driver panel, so they use the same method which simply does not work.
    Locked? Definitely not. If yes, why can I change the MAC of my adapter under Ubuntu Linux using b43 open-source driver if it's really locked? Or you mean it's locked from software, because Lenovo or Broadcom didn't want their users to change their MACs or they just forgot to release a fully-functional driver? Well, then I would like to have a driver in which it's not locked, because this is a basic feature of my adapter of which the hardware is capable.
    I have already contacted Broadcom, see their (automatically-generated) answer in my initial post, but I will try to do that again with more foresight.

Maybe you are looking for