Interactive Reporting Scripting with Picture Object

I'm using CreateShape(bqShapeType, [sectionName]) to dynamically create some simple graphics on a report. I've created simple shapes and lines fine. But I'm at a loss when creating new picture objects (which is a shapetype bqPicture). I can create it fine, but I have not been able to find the property to set to the image file or resource that I want to use. I belive I've inspected all properties and methods of the picture object and there doesn't seem to be one for setting the actual image to use. I find this really odd! I looked at all the following properties and methods.
Picture Object
- Methods - OnClick
- Properties - Alignment, Comments, Locked, Name, Text, Type, VerticalAlignment, Visible
- UserValues - Methods: Add, Item, RemoveAll, Properties: Count
- Line - Properties: Color, DashStyle, Width
- Fill - Properties: Color, Pattern
- Placement- Methods: Modify, Properties: Height, Width, XOffset, YOffset

Unfortunately, there is no way to programmatically replace picture in the dashboard. If you need to dynamically change some picture then the common approach is to add several pictures one upon another and hide/show the picture you need. 'Visible' property is used in this case.
However the replacement is possible for report pictures, see the 'FilePath' property for details (dashboard pictures lack this property).
This problem is solved in the upcoming release. It will contain a full featured api to manage the centralized image storage (aka Resource Manager, Tools -> Resource Manager). Also, FilePath property will be added to dashboard picture property list.
Hope this information will help you.

Similar Messages

  • Interactive Report - aggregate with hide - bug or feature?

    We are in the process of converting existing reports to Interactive Reports (IR), and adding a bunch of new ones. We ran into a roadblock when using IR with aggregates. To
    reproduce, I created a test table with region, state, county, city and population columns. I created an interactive report, CONTROL BREAK on "Region", aggregate (SUM) on
    population. The result looked like this.
    <p>
    <b>Result #1:</b>
    <p>
    Region: West
    ************<b>
    State  County         City            Population</b>
    CA     Orange County  Irvine          100
    CA     Orange County  Orange          200
    CA     Los Angeles    Hollywood       300
    CA     Los Angeles    Universal City  400<b>
                          Sum           1,000</b><p>
    When I clicked on City column, and chose to hide it, I expected the IR to resummarize the result to look like this:
    <p>
    <b>Result #2:</b>
    <p>
    Region: West
    ************<b>
    State  County         Population</b>
    CA     Orange County  300
    CA     Los Angeles    700
           Sum          1,000</b><p>
    But what I saw was this:
    <p>
    <b>Result #3:</b>
    <p>
    Region: West
    ************<b>
    State  County         Population</b>
    CA     Orange County  100
    CA     Orange County  200
    CA     Los Angeles    300
    CA     Los Angeles    400<b>
           Sum          1,000</b><p>
    The data in the above result #3 is not presented the in way it should be for the users to comprehend.
    <p>
    In the non-interactive version, we display checkboxes for the users to show and hide the columns. If the column "City" is set by the user to "Hide", then we use the
    condition on the column to hide the City column from the report, and use the query "SELECT ..., CASE WHEN :P10_SHOW_CITY = 'YES' THEN city ELSE NULL END As city, SUM
    (population) FROM .. " to summarize the data. This displays results like the one shown in Result #2.
    <p>
    1. Shouldn't IR re-summarize the data to display results like I have shown in Result #2 when a column is hidden? We are able to achieve this with non-interactive version. Is this a
    bug in IR?
    <p>
    2. Is there a way to get interactive report to display results like the way I have shown in Result #2?
    <p>
    3. Is there a way to retrieve the columns that are set to "HIDE" in IR so that we can modify our SQL to resummarize?
    <p>
    <b><u>Script to reproduce:</u></b>
    <p>
    Create table test_ir(
        region varchar2(50),
        state  varchar2(50),
        county varchar2(50),
        City   varchar2(50),
        population number(4))
    insert into test_ir(region, state, county, city, population) values
    ('West', 'CA', 'Orange County', 'Irvine', 100)
    insert into test_ir(region, state, county, city, population) values
    ('West', 'CA', 'Orange County', 'Orange', 200)
    insert into test_ir(region, state, county, city, population) values
    ('West', 'CA', 'Los Angeles', 'Hollywood', 300)
    insert into test_ir(region, state, county, city, population) values
    ('West', 'CA', 'Los Angeles', 'Universal City', 400)
    select region, state, county, city, population from test_ir<br>
    Thanks.<br>
    <br>
    Ravi

    Hi Ravi,
    When you add a control break, we do not re-generate the query to do group by. We just do control breaks. In the current version of APEX, to achieve what you are trying to see, you need to create an Interactive report with group by clause. If you want to use a dynamic query, the solution I suggest will not work.
    The good news is in APEX 4.0, we are working to include group by view to an Interactive Report. This will let you select group by columns and aggregate functions to get the Result #2 you are trying to get.
    If you wish to see how this works, we will be able to show if you come to APEXposed 2008, October 29 - 30, at Chicago O'Hare Wyndham.
    Christina

  • Report script with attribute members

    <BR>In a report script, is there a way to output the attribute members associated with a base mbr. For example, the base member I'm interested in is item codes which is in a sparse dimension with 500k members. Each code has been tagged with 5 attribute members of buyer, warehouse, vendor, product line, and date of last receipt. Desired output is:<BR><BR>Item Code, Buyer, warehouse, vendor, product, and date of last receipt. <BR><BR>Right now I don't care about data at any intersections, rather I just want to output the various attributes associated with each item code. I tried doing dimbottom on items, buyers, warehouse, vendor, etc, but as expected the report would not run. <BR><BR>Thanks in advance for any suggestions.

    <p>Maybe you can use the Outline Extractor, you can download itsomewhere on this website...</p>

  • Can Actions Menu of Interactive Reports work with Custom Authentication?

    My testing is leading my to believe that Actions Menu do not work with Custom Authentication (but only work with APEX Authentication) in APEX 3.1.2? If that's true then is there a work around to this?
    Just to clarify, I've posted/asked this question twice before:
    1) Re: Actions Menu in Interactive Reports does not sort, filter, select cols etc
    2) Interactive Report actions don't work for users (i.e. for non-developers)
    But I've come to believe this is the main problem. I just don't know how to resolve/work around this?
    Thanks for any help.

    I haven't setup a sample because my custom authentication is using LDAP authentication. I'm not sure how I can replicate that on the samples server?
    I'm using LDAP authentication with a Page Sentry function. My further testing reveals that the Page Sentry function is setting the APEX variable user to NULL (ie blank) whenever there's any code in the Page Sentry function box. PL/SQL code as simple as
    BEGIN return TRUE; END;
    in the Page Sentry function box sets the "user" is set to <null>. When the Page sentry function box is left empty (no code specified) it sets the "user" properly after authentication against the specified LDAP directory.
    What all this has to do with Interactive Reports...
    It seems like when the user is NULL it messes-up Interactive Reports that are stored in the flows database. Although it shows the default report properly, but no runtime interactive actions (filtering, sorting, column break, etc.) work.
    Can someone please correct or confirm this?
    Thanks.

  • Interactive Report filtering with hidden item column names

    I have created an Interactive Report and changed some of the default column headings by using hidden Items with appropriate title. However, when I look at the filter option in the "Gear" drop-down, the only column names which appear are the default ones. There are blank lines for the columns using hidden Items. Any suggestions for having the hidden item content appear in the filter column name list?
    Thanks,
    George

    George,
    What is it you're actually trying to do here? Maybe there's an easier way?
    Hidden items aren't going to show up in the Column List.
    I'm guessing you're trying to separate a long list of column names using '----------' or something like that? We're looking to do just that in our application, but obviously we don't want to users selecting these dummy entries. We tried using the IR column groups, but those make the list look even more cluttered IMHO. (Plus setting the sort order w/in the groups doesn't seem to affect the drop-down column lists, which seems counter-intuitive to me).
    If anyone has other suggestions for breaking up the column list display, I could use something immediately (going into beta-test in 2 weeks!).
    Thanks,
    Stew

  • Interactive Report, issue with backgroud color of Column Heading.

    Hi,
    I am using Theme -16
    and there is a Interactive Report with the following columns Headings
    Employee Name   Employee No  DOB
    Now, the label of the first column is changed from Employee Name to Employee<br>name.
    The column heading is now displayed as follows.
    Employee   Employee No   DOB
    Name         problem is when I add a break in any of the column heading..the background color of the column headings is different than the first one (little bit darker).
    Why the background ground of the column heading is different in both these cases??.
    Thanks,
    Deepak

    Why the background ground of the column heading is different in both these cases??.The report heading background is controlled by the CSS rule
    .apexir_WORKSHEET_DATA th {
      background: #4e4e4e;
      font-weight: bold;
      color: #fff;
      border-top: 1px #ccc solid;
      border-bottom: 1px #aaa solid;
      white-space: nowrap;
      vertical-align: center;
      letter-spacing: 1;
      font-size: 8pt;
      background-image: url(../ws/report_bg.gif);
      background-repeat: repeat-x;
    }This uses a [gradient image|http://apex.oracle.com/i/ws/report_bg.gif] that is repeated horizontally to provide a shaded background from light to dark grey. As the background image doesn't repeat vertically, when the height of the heading is more than the height of the image the gradient is replaced by the underlying background colour (#4e4e4e). This is what's happening when the break is inserted into the header text: the height of the heading increases, causing more of the darker area of the background image/underlying colour to be visible.

  • MBAM 2.5 Reports Fail with "Invalid object name 'v_GS_MBAM_POLICY'."

    Utilizing the SSRS Reports for MBAM 2.5 Integrated into Configuration Manager 2012 R2 Cu3, when I run the reports it states that the view
    'v_GS_MBAM_POLICY'  does not exist.
    The complexing thing though is that there are computers that are reporting the HINV Class called 'Win32Reg_MBAMPolicy'  So I would think this view would have been created.
    Does anyone know the process by which the view gets generated since my HINV is reporting back the information, yet the view has not been created in the DB yet... It makes no sense.
    The error is:
    Microsoft.Reporting.WinForms.ReportServerException
    An error has occurred during report processing. (rsProcessingAborted)
    Stack Trace:
       at Microsoft.Reporting.WinForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.AsyncMainStreamRenderingOperation.RenderServerReport(ServerReport report)
       at Microsoft.Reporting.WinForms.AsyncRenderingOperation.PerformOperation()
       at Microsoft.Reporting.WinForms.ReportViewer.AsyncReportOperationWrapper.PerformOperation()
       at Microsoft.Reporting.WinForms.ProcessingThread.ProcessThreadMain(Object arg)
    Microsoft.Reporting.WinForms.ReportServerException
    Query execution failed for dataset 'ComplianceDetails'. (rsErrorExecutingCommand)
    Stack Trace:
       at Microsoft.Reporting.WinForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.AsyncMainStreamRenderingOperation.RenderServerReport(ServerReport report)
       at Microsoft.Reporting.WinForms.AsyncRenderingOperation.PerformOperation()
       at Microsoft.Reporting.WinForms.ReportViewer.AsyncReportOperationWrapper.PerformOperation()
       at Microsoft.Reporting.WinForms.ProcessingThread.ProcessThreadMain(Object arg)
    Microsoft.Reporting.WinForms.ReportServerException
    Invalid object name 'v_GS_MBAM_POLICY'.
    Stack Trace:
       at Microsoft.Reporting.WinForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.AsyncMainStreamRenderingOperation.RenderServerReport(ServerReport report)
       at Microsoft.Reporting.WinForms.AsyncRenderingOperation.PerformOperation()
       at Microsoft.Reporting.WinForms.ReportViewer.AsyncReportOperationWrapper.PerformOperation()
       at Microsoft.Reporting.WinForms.ProcessingThread.ProcessThreadMain(Object arg)
    David Baur

    We ran into this error as well. Turns out that MBAM-provided reports to SCCM 2012 fail with an error unless the Win32Reg_MBAMPolicy class is added to SCCM, which also updates the SCCM SQL with required Views, including "v_GS_MBAM_POLICY".
    The solution that we finally came up with was to import an updated MOF file to include the BitLocker Policy (Win32Reg_MBAMPolicy) class into the "Hardware Inventory" section of the Default Client Policy. Once the import is complete SQL also gets
    the appropriate view created.
    The instructions on how to create and import the MOF file can be found in the link below.
    http://technet.microsoft.com/en-US/library/dn237295.aspx
    Chris Keene
    Product Specialist at Wave.

  • Interactive report column with an external link -  Sort, chart functions

    interesting.... the message text did not make it into the post (twice). But edit seems to work.
    Our problem....
    We have an interactive report with a column that in some cases will contain information allowing us to build a link. We have updated the report query to return the data tagged with the <a href..... on rows that can be links. The links are displayed and function correctly. However, if we click on the column header so we do something like sort, the page hangs. If we try to create a report using this column we get an error.
    We have also tried marking the column as a link in the IR definition. With that design, the sort and reporting isn't an issue, but all the rows are links, which is not what we need.
    Does anyone have any ideas on how to solve this problem?
    Thanks, Nann
    Edited by: Nann on Feb 6, 2010 11:07 AM

    Hi Peter,
    Thanks for your suggestion. We ended up with a slight variation in the design that allowed us to mark the column as a link.
    Basically we have a column just for the link.
    In our query we now have 2 columns. One that builds the url, the other the text we want displayed as a link.
    If that row should not have a link in it the query returns null for both columns.
    We only display the link column in the report.
    We use the url column in the link definition .
    We've disabled the sort and other functions on this column.
    All works as we wanted.
    Thanks
    Nann

  • Interactive Report - problem with export by email

    Hi,
    We're upgrading to Apex 4.0 and we encountered a problem with the email export in html format for the Interactive Reports. The french accents are displayed with some weird symbols in the HTML file.
    When I export directly in html from my report instead of the email, the accents are fine. So the problem must be the encoding of the email which is set to UTF-8. Our database use WE8MSWIN1252 encoding for the NLS Characterset.
    Without changing our NLS Characterset, is there something I can do to correct this ?
    Thanks

    Hi Denes,
    The administrator have created a mapping table,and they send me this two lines in JMT.conf file:
    /htmldb-test /i/fck/*
    /htmldb-test /pls/*
    The error still exists,i would like to know if these two lines generate a kind of confusion in any treatment of filtre in interactive report.
    Aymen

  • Interactive Report Performance With Conditional Link

    Apex 3.2
    I have a interactive report.
    The underlying sql would return 127000 rows
    The sql is
    select
      lde.ods_system,
      lde.ldekey,
      msg.sendersystem, 
      msg.messagetype,
      msg.messageversion,
      msg.msgseqnumber,
      msg.alternatekey,
      msg.crudmarker,
      msg.clrbookdate,
      msg.clrbookresult,
      lower('udf_'||msg.messagetype) button,
      lde.ldekey||'.'||msg.alternatekey||'.'||msg.msgseqnumber udm_key
    from
      clr_esbmessageheader msg,
      clr_adm_systemmessage adm,
      udm_lde lde
    where
      adm.ldeid = lde.ldeid and
      msg.sendersystem = adm.system and
      msg.messagetype = adm.messagetype and
      msg.messageversion = adm.messageversion and
      msg.receiversystem = 'SCIPS'
    order by msg.clrbookdate desc
    This report only takes 1 second to display.
    I need to add a conditional link to another page, so I used
    case
    when lower('udf_'||msg.messagetype) = 'udf_distreceipt' then
    '<a class="type" href="' || apex_util.prepare_url('f?p='||:APP_ID||':52:'||:APP_SESSION||'::'||:DEBUG||':RIR'||':IR_MSG_KEY,P52_PG:'|| lde.ldekey||'.'|| msg.alternatekey ||'.'|| msg.msgseqnumber ||','|| 50, null, 'SESSION') || '"title="Go to udf_distreceipt Report">udf_distreceipt</a>'
    else 'no link' end table_link
    The sql seems to be ok, because the report accepted it, but selecting the new column and saving the report takes forever (over 2 mins)
    Now the report takes over 2 minutes to run and I still need to add more conditions.
    Have I coded the link incorrectly ?
    Gus

    Hi Gus,
    Are you wanting to put the link in the query for a specific reason?
    I had to do a similar thing in the past and just completed the column link section for the column.
    Why not just have the following in the query:
    case
    when lower('udf_'||msg.messagetype) = 'udf_distreceipt' then
    udf_distreceipt
    else null END table_link
    Then do the linking using column link section:
    You would specify your link text as #TABLE_LINK# which should then be conditionally displayed due to the case statement, then add in all the page item and values to pass across using a normal link column.
    Thanks
    Paul

  • Interactive report : issue with french special characters

    Hi,
    We have many interactive reports and we can't use any french special characters in the filter clauses. For example, Montréal becomes montréal.
    What parameters do we have to change to make it work?
    Thanks.

    I found the answer in this thread : Interactive Report Character Set Issue

  • Link to Interactive Reports application with parametes

    Hi ,
    I'm trying to link a reporting application to a interactive report application and but I'm not sure on how I should pass parameters ?
    Any clues on how to use the URL to achive this ?
    V

    V,
    Does this help you...
    Interactive Report - Show Saved Reports as Tabs
    Anthony.

  • Download Interactive Report fails with ORA-06502

    I am using:-
    Apex version 4.2.1.00.08
    Oracle DB 11.2
    Apex Listener
    I.E. 8
    I have created an interactive report and when I download the report to CSV I get ORA-06502.  My report contains over 100 columns some of which are blobs so I am hitting the old 32k limit.  Does anyone have a work round for this problem. The ability to download data is a key feature of my application and this really is a show stopper form me.
    Regards...

    The queries are not executed in parallel but in serial. So the total execution time configured will be for all the Select statements in the report combined.
    As for your second question, since the execution is not parallel hence BO will not initiate any error message until the total execution time exceeds the defined limit. This could be during the execution of first select statement or the second.
    Try executing the queries directly in database one by one and see how much time they are taking.
    - Noman Jaffery

  • Interactive Reports - problem with umlaute like 'ü'

    Hello,
    when i display an interactive report, all data and umlaute like "ü" was display correct.
    But when i set an filter like "häuser" and then press search, the filtertext was changed to: 'häuser'.
    Is this a language or character-set problem of the ajax engine?
    thank you for any hint.
    Daniel

    hi there,
    this helped me to solve the problem:
    http://www.oracle.com/technology/products/database/application_express/html/freq_solved_faq.html#04
    regards
    frank

  • Making sub-programs with picture objects

    Hello all,
    I'm a mentor for a FRC Robotics Team. For the summer, I want to try to make a VI that is able to create sub-programs for the autonomous period. Basically, there would be this canvas that the user could move the "robot" (aka rectangle) around, and it would record its movements and "translate" them into "motor code".
    For instance: I want my robot to go straight for about 3 feet, rotate 90 degrees clockwise, and go another 3 feet. I would take the rectangle, drag it up an equivalent 3 feet (maybe using a grid pattern to show 0.5 feet increments), rotate the rectangle 90 degrees clockwise, then drag it another 3 feet.
    This is the big picture. Right now, I want to know if it's possible to have a user drag a picture (such as a rectangle) and have the program where it is on a coordinate plane.
    Thanks!

    Whenever I hear someone ask, "Can LabVIEW..." I always say yes, regardless of what comes next. In the the case of your requirement, there is (or at least was) an example in one of the lower-level training classes that did most is what you want.
    The point of the exercise was to teach saving binary data, but to generate the data (this is the bit that will be interesting to you) they created a little drawing program using mouse events on a 2D picture control.
    So, yes, what you want to do is very doable, my sense though is that it is one of those projects that would take a couple hours to create a working prototype, but you could play with tweaking for months...
    Have fun!
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Maybe you are looking for