Use case for showing records in report view BAM based on version number
Hi,
I have a use case to update records based on version no. Let say I have a table or data object in BAM called 'Notes'. The Notes dataobject has three fields Id, Version, Description. The Notes data is displayed in a BAM report. I need to just display the latest version of the Notes. Say two records with one with Id as '124' and Version '4' and another with Id as '124' and version as '5'. The record related to version 5 should be dispalyed to user. How will I introduce this check in BAM reports for the latest version?
Thanks
Edited by: user5108636 on 28/06/2010 16:47
That you see you're prints only means that your method outta called. The code creates a new row, but never inserts the row into the rowset. Then you call execute query which loses any connection to the new route which is not part of the rowset.
First action would never to call insertRow(r1) on the view object.
If you change data this way, only the model layer knows about it, the ui can't know about this (one of the disadvantages of using plsql or this construct you try). You have to tell the view controller to update it's data to. For this you can execute the iterator in the binding layer and/or ppr the container showing your data.
Then I don't see any complicated plsql called do I question if a programmatic co is necessary.
Timo
Similar Messages
-
Report Document not show on Crystal Report Viewer in C#
My program is modified from VB.NET. Now I struck with Crystal Report that Crystal Report Viewer didn't show Report Document.
Printing code is composed of two forms. One assign parameters and objects need. Other is Crystal Report Viewer form, CrystalReportForm. Last one run report by parameter from the first.
When run this code that it didn't found any error but the problem is no report show on Crystal Report Viewer on second form. It just blank Crystal Report Viewer. There arm't any message response.
Here is my code.
// report caller form.
private void Print()
CrystalReportForm rptForm = new CrystalReportForm();
string[] strtbl;
strtbl = new string[1];
string[] strqry;
strqry = new string[1];
// prepare var
string myqry;
string myrpt;
// Pass The Table That you used in the crystal Report
strtbl[0] = "r_receipts";
// Pass the Query
myqry = "SELECT * FROM r_receipts";
myrpt = "rptReceipts.rpt";
strqry[0] = myqry;
//Pass For Mdi True
rptForm.MdiParent = this.ParentForm;
rptForm.ViewReport(myrpt, strtbl, strqry, "");
//Parameter Value It is Optional
rptForm.Show();
// Crytal Report Viewer form.
public void ViewReport(string ReportName , string[] TableName, string[] QueryString , string Parameter = "")
//Me.MdiParent = mainpage;
if (TableName.Length != QueryString.Length )
MessageBox.Show("Passed Variable Are Not Correct", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
CrystalDecisions.Windows.Forms.CrystalReportViewer crv = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
crv.ActiveViewIndex = 0;
crv.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
crv.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
crv.Dock = System.Windows.Forms.DockStyle.Fill;
crv.Location = new System.Drawing.Point(0, 0);
crv.Name = "CrystalReportViewer";
MySqlDataAdapter at =new MySqlDataAdapter();
DataSet ds = new DataSet();
for (int i = 0; i < TableName.Length; i++)
at = GetDataAdeptor(QueryString[i]);
at.Fill(ds, TableName[i]);
string rptPath = "";
rptPath = Application.StartupPath + "\\" + ReportName;
rpt.Load(rptPath);
rpt.SetDataSource(ds);
if (Parameter != "")
rpt.SetParameterValue(0, Parameter);
crv.ReportSource = rpt;
crv.Refresh();
//CrystalReportViewer.DataBind();
//Me.Panel1.Controls.Add(CrystalReportViewer);
Panel panel1 = new Panel();
panel1.Controls.Add(crv);Hi Bhushan,
It's not yet fixed. My dataset (ds) can't bine to DataGridView as
DataGridView1.DataSource = ds
But it could do like this
DataGridView1.DataSource = ds.Tables[0];
When I bine to Crystal Report Viewer setdatasource
CrystalReportViewer1.setdatasource = ds.Tables[0];
It still not work, anyway you suggest let me in the right way. I very confuse the thing I fix to bine to DataGridView
Thank,
Chaiwat -
How to use a connection ODBC in crystal reports viewer?
Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer?Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer? -
Use case for describing a web service
Dear all,
I have a fundamental question for describing a web service.
An analyst will first write (1) a use case for describing the web service and (2) wsdl and xsd files for describing the web service.
As a developer, I would say that artifact (2) is enough. As an analyst, I would still need to document the requirement in the format of use case specification. However, it is not clear for me what should be put in this use case specification and what is the added value of such a use case.
Have you any sample example of this kind of use case in order to describe a web service?
Thanks in advance.
Pengyouwpafbuser1 wrote:
First, don't post twice. I'd rather see you bump a post then repost the same question.
Have you any sample example of this kind of use case in order to describe a web service?First, searching Google will show you millions of use cases you can use as examples. Second, why would you think writing a use case for a Web Service would be any different than any other use case?Sorry for posting twice. I thought the first one failed due to a system error but I was wrong.
From millions of use case I can not find a "good" one.
I have in fact two conceptual questions:
1. I have not much to say about the flow of events. It is simply a request and a response. This is much simpler than a "normal" use case. Am I right?
2. However, I don't know where to put the description of business logic: 2.1 the data sets to be put in the request and response; 2.2 the business logic to construct the response from the request.
I would appreciate any hint or discussion.
Pengyou -
Use cases for the SAP HANA Appliance for SAP FI-Accts.Payable
Hello SAP HANA friends:
Are there any compelling use cases for the SAP HANA Appliance for SAP FI-AP Accounts Payable module?
CO-PA and CRM have many immediate use cases, but I'm looking for the use case for Accounts Payable,
either from a cash flow perspective or performance.
Any and all comments are appreciated.
Regards,
Joe Gonzales
856 912 1136Hi,
In SQL console please execute below query .
GRANT SELECT ON SCHEMA <schema Name> TO "_SYS_REPO";
BR
Sumeet -
Hi All,
I've a question about potential use case for Oracle spatial. Data structures are following:
Clients
Account (have a dimension of balance, can be zero or above zero)
Client to account relationship
E.g.
Client C1 is a borrower to Account A1 (balance = 0)
Client C1 is a co borrower to Account A2 (balance > 0)
Client C2 is a co borrower to Account A1 (balance > 0)
Client C3 is a co borrower to Account A3 (balance > 0)
Currently, database is modeled as a set of three tables, e.g.
Client
ID
DATA
Account
ID
DATA
BALANCE
CLIENT_TO_ACCOUNT
CLIENT_ID
RELATIONSHIP (E.g borrower)
ACCOUNT_ID
Business limitations:
We are not interested in independent graphs for which all accounts have balance = 0 (let's call it inactive graph), however we might need occasionally query it
Users are interested in vertices/edges with account which have balance = 0, but linked (up to level N) to active account for analysis purposes
There is no well defined root (e.g. there can be 2 or more clients which are co borrowers to same account)
99% of queries will be against active graphs
Graphs are mutable, e.g. new relationships (edges) may be created/deleted during the day
Users are potentially interested in free navigation in whole independent graph, starting from root.
Root is determined by certain business rule
Need to process active graphs daily as bulk
Problems which I am trying to solve:
Limit the amount of data which may need to be processed - based on the analysis of current system, we only need 5% of data + some delta for 99% processing
Make sure performance does not degrade with time as we get more historical (processed data) - we can not deleted accounts with balance = 0 as potentially new relationship may arrive with new accounts with balance > 0
Current solution that I am thinking of :
Artificially partition the data universe as active and inactive graphs. All indexes would be local to two partitions.
E.g.
GROUP
GROUP_ID PK
ACTIVE_FLAG (partition key)
CLIENT
GROUP_ID (PARTITION BY FK TO GROUP)
ACCOUT
GROUP_ID (PARTITION BY FK TO GROUP)
CLIENT_TO_ACCOUNT
GROUP_ID (PARTITION BY FK TO GROUP)
The issues I am seeing right now:
1. Graphs(groups) may be potentially unlimited, so I will need a artificially limit the size using some dividing algorithms - leading to
2. Graphs(groups) may need to be joined or divided
3. Graphs(groups) will have to be activated/deactivated - e.g. moved to different partitions.
4. Data loading, activation/deactivation algorithms are not simple
So I am thinking about Oracle Spatial (Network) to model this problem.
Questions:
1) Can I model this problem using Oracle Spatial?
2) Will I gain any performance improvement?
3) Is there any explanation or white paper on how to do this for this particular type of problem?
4) Will the solution based on Oracle Spatial solve the problems outlined above?
5) Will my solution (without using Oracle spatial) work at all? Or there are some fundamental issues..
Thanks you!Either add a LOV to the JobID attribute definition in the VO (if the JobID will be editable) or simply add the job description to the select statement (join to the job table) as a reference attribute
-
Problems with Use Cases for Process Integration
Hi there,
I'm reading the "Simple Use Cases for Process Integration" (http://service.sap.com/xi -> Media Library ->
Documentation) and try to setup the variants 1 up to 4. As per description I created the Technical and Business Systems in the SLD. Everything worked fine. But I can't find the created business systems in the Integration Directory When I click on Objects tab page -> Services without party and and choose Assign Business System, I can't see the desired business systems in the list. What am I doing wrong?
Cheers
Marchi Marc,
maybe the business system was already assigned?
1. check if the business system exists in the SLD
2. check if the business system exists in directory
3. refresh SLD cache (in directory menu)
4. try assigning once more
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Practical Enterprise Service Bus Use Cases for SOA & writing for Dev2Dev
Dev2Dev has just published:
Practical Enterprise Service Bus Use Cases for SOA
http://dev2dev.bea.com/pub/a/2006/06/service-bus-use-cases.html
"What is the role of an ESB within SOA? In this article, Kenny Shin provides some practical advice, illustrating how an ESB adds aspects such as transport security, data validation, and messaging patterns to Web services"
Check it out. If you'd like to write for Dev2Dev, please contact me - I have plenty of ALSB topics to choose from.
Regards,
Jon
Jon Mountjoy - http://dev2dev.bea.com/pub/au/13I also think that same way. I do not know what is so apecial about BEA Aqualogic ESB and other market matured ESB products such as TIBCO & SONIC. The samples which BEA has given in their evaluation guide are very simplistic. BEA should do more to provide extensive knowledge/features about their Aqualogic line of products.
-
Crystal Report Viewer (flash based) is displaying partial of the flash interface. It is working well on Firefox 3.6.7 and below but not in Firefox 3.6.8. It is also working well on Internet Explorer and Chrome and Safari. Please check if you can advise on this problem we are facing. Thank you.
== This happened ==
Every time Firefox opened
== Crystal Report Viewer (flash based) is displaying partial of the flash interface. It is working well on Firefox 3.6.7 and below but not in Firefox 3.6.8. It is also working well on Internet Explorer and Chrome and Safari. Please check if you can advise on this problem we are facing. Thank you. ==
== User Agent ==
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5Reset the page zoom on pages that cause problems: '''View > Zoom > Reset''' (Ctrl+0 (zero); Cmd+0 on Mac)
See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages
You can try if it works if you disable OOPP (Out-Of-Process-Plugins) for Flash
You can set the prefs dom.ipc.plugins.enabled.* to false on the about:config page to disable the plugin-container process.
dom.ipc.plugins.enabled (currently false by default)
dom.ipc.plugins.enabled.npswf32.dll (Flash)
To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
If you see a warning then you can confirm that you want to access that page. -
How to show multiple values for Unique records in Report
Here's my question/problem:
I've joined two tables, one table (TBL1) contains an object id (OBJ_ID) that repeats and the other table (TBL2) contains a date (DT), object type id (OBJ_TYP_ID), and object type description (OBJ_TYP_DES). The tables are joined by an inventory id (INV_ID).
The OBJ_ID repeats and has a Date value for each record. I want to report an unique OBJ_ID and show each Date for a particular OBJ_ID in multiple Columns.
An example of the current resultset looks like this:
OBJ_ID OBJ_TYP_ID OBJ_TYP_DES DATE
1 1 TYPE1 4/1/2009
2 1 TYPE1 4/1/2009
3 1 TYPE1 4/10/2009
1 2 TYPE2 5/3/2009
3 1 TYPE1 3/30/2005
4 1 TYPE1 4/1/2009
5 1 TYPE1 4/1/2009
5 2 TYPE2 5/1/2009
1 1 TYPE1 4/3/2007
1 1 TYPE1 3/30/2005
I want to express the resultset like this:
OBJ_ID OBJ_TYP_ID OBJ_TYPE_DES DATE1 DATE2 DATE3
1 1 TYPE1 4/1/2009 4/3/2007 3/30/2005
1 2 TYPE2 5/3/2009
2 1 TYPE1 4/1/2009
3 1 TYPE1 4/10/2009 3/30/2005
4 1 TYPE1 4/1/2009
5 1 TYPE1 4/1/2009
5 2 TYPE2 5/1/2009
What technique is best to use to do this? I know I could create another table and populate the rows/columns by reading data from this query, but is there a better way?Hi,
cclemmons wrote:
I want to express the resultset like this:
OBJ_ID OBJ_TYP_ID OBJ_TYPE_DES DATE1 DATE2 DATE3
1 1 TYPE1 4/1/2009 4/3/2007 3/30/2005
1 2 TYPE2 5/3/2009
2 1 TYPE1 4/1/2009
3 1 TYPE1 4/10/2009 3/30/2005
4 1 TYPE1 4/1/2009
5 1 TYPE1 4/1/2009
5 2 TYPE2 5/1/2009
What technique is best to use to do this? I know I could create another table and populate the rows/columns by reading data from this query, but is there a better way?Absolutely! You seem to have an instictive feeling that creating a separate table just for a query is inefficient. You instinct is 100% correct. Maybe in Oracle 7 there was a reason to do that, but today you can query results of other queries as if they were tables, so temporary tables like you describe are very rarely necessary, let alone convenient.
What you want to do is pivot the date columns. Here's one way
WITH original_query AS
SELECT obj_id
, obj_typ_id
, obj_typ_des
, dt -- date is not a good column name
FROM ... -- the rest of your original query goes here
, got_rnum AS
SELECT oq.*
, ROW_NUMBER () OVER ( PARTITION BY obj_id
, obj_typ_id
, obj_typ_des
ORDER BY dt DESC
) AS rnum
FROM original_query oq
SELECT obj_id
, obj_typ_id
, obj_typ_des
, MAX (CASE WHEN rnum = 1 THEN dt END) AS dt1
, MAX (CASE WHEN rnum = 2 THEN dt END) AS dt2
, MAX (CASE WHEN rnum = 3 THEN dt END) AS dt3
, MAX (CASE WHEN rnum = 4 THEN dt END) AS dt4
, MAX (CASE WHEN rnum = 5 THEN dt END) AS dt5
FROM got_rnum
GROUP BY obj_id
, obj_typ_id
, obj_typ_des
;As you can see, this adds two layers of queries on top of your original query. One of those layers is probably not needed; depending on what you're doing in your original main query, you can probably compute rnum there, and omit the got_rnum sub-query.
Also, depending on the relationship of obj_id, obj_typ_id and obj_typ_des, some of what I posted above may not be needed but including it won't really hurt.
If you want to know more about this technique, search for "pivot" or "rows to columns". A <tt>SELECT ... PIVOT ...</tt> keyword was introduced in Oracle 11, but most of what you'll find when you search for "pivot" doesn't assume you have Oracle 11 (nor does the query above require Oracle 11).
This assumes you know an upper limit (5 in the example above) of dts that can appear in any line of output.
See [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=3527823�] for a discussion of some alternatives. -
Problem showing the crystal report viewer in form after added the component on it
Greetings
I have a problem running a program. I created a form which I added the component Crystal Report Viewer perfecty but during program execution when I call that form my VS 2012 Ultimate show the following error:
Translated:
Failed to create the form. See Exception.InnerException for details. Error: An exception occurred in the type initializer for 'CrystalDecisions.Shared.SharedUtils'.
Note: If I remove the component from the form. the applications runs fine when calling the form without the component CrystalReportViewer
It is something related to my VS? o just that the actual version 13.0.9 is not yet compatible?Report.Show?
How about you try:
CrystalReportViewer1.ReportSource = <path to your report>
Or:
Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
crReportDocument.Load(<path to your report>)
CrystalReportViewer1.ReportSource = crReportDocument
Or, if the report is added to the project:
crReportDocument = New test
CrystalReportViewer1.ReportSource = crReportDocument
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Message was edited by: Ludek Uher -
Material Description is not displaying for few records in Report
Dear Experts,
Report Material Description is not displaying for few records in Bex Report but for records it is coming and even the heading of the material Description is also not coming for this report.
Cud u plz suggest a good solution for it.
Regards,
Sai Phani.Hi Phani,
For the text of the material in records, check if there is text maintained for that material in the master data. also try by changing the text to medium text and long text.
regarding header, you will have same heading for key and text, you may use Materail ID / Description as the heading if you want.
regards,
Rk. -
Picture not showing in Crystal Report Viewer
We have an asp.net web solution that shows Crystal Reports using the crystal report viewer and also exporting the reports to PDF, Word and Excel The reports are working fine, but when showing the reports in the crystal report viewer the picture in the report is not shown (see crystalviewer.png), but when exporting to PDF, Word, Excel and so on, this picture is shown (PDF.png).
Can you check if this is an error in crystal report ? or is there some kinda security issue?
The report is not attached to this document, because the file type is not allowed.
We have even tried to install the latest version (13.0.9.1312) from your homepage.
This version also has the problem. http://scn.sap.com/docs/DOC-7824 Exporting crystal report
report.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, False, Page.Title)
CrystalReportViewer1.ReportSource = reportPlease provide more info on:
We use register to this page.
How is that done? Or, what is it that you do in the registry to manage the CR viewer?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
We are on ECC6.0 NW04s.
When trying to update the W4 of an existing employee, it does not show the current data stored in IT210. Only a "new" icon appears. Use case of B2 is maintained for all states and FEDERAL.
Does anyone know what usecase needs to be maintianed inorder to bringin the existing values into the W4 screen and then allow the employee to change his/her options.
Advice appreciated.
Regards, SunilHello Sunil,
I also faced the same problem ...this is not because of the use case but there is a change to be done in the model binding of the W4 Webdynpro application.......just try to point the ReadInfotype node in the FcW4 component to the appropriate structure .
Let me know if it helps. -
SanDisk Webinar: Application Acceleration & Use-Cases for ioMemory
Please join us Thursday the 16th for our webinar on Fusion ioMemory. We'll be talking ways to leverage PCIe to improve performance of databases, virtualization, transaction processing, big data and analytics along with customer use-cases.
Register: https://www.brighttalk.com/webcast/12587/163371
This topic first appeared in the Spiceworks Communityhi how are you? i was wondering if you could help me out with my ixpand. i bought it a couple of days ago and it worked fine. i was able to copy my camera roll to the device and even managed to watch video from the device on my iphone. however, i used it until the battery ran out and it told me to charge it. i connected it to my computer and left it to charge until the green light showed up and after that i tried to use it again and my phone will not recognize it. when i open the app it tells me to check that the drive is charged and it is and a light starts to blink as soon as i plug it into the phone. dont know that that light means! the manual says that it means its tranfering files but how can it be that if i cant even see whats on it? on my PC i cant open it to see the contents either. it shows up as an external drive but when i click it it says to connect a drive. i really hope you can help me to fix this problem since i just bought it and only used it once.
Maybe you are looking for
-
UPS Energy Saver on MacBook Pro for External Drives
A search here has shown this topic come up before -- such as at https://discussions.apple.com/message/1886738#1886738 and https://discussions.apple.com/message/8162836#8162836 -- but I can't find a resolution, so I'm bringing it up again. I have mult
-
Save Log file from Disk Utility App running from Recovery HD?
Background: I had an issue with QT and screen recording; it was coming out solid green. I read on Apple Support that I should restart holding down Command-R. I did that, booted into Recovery HD, then opened Disk Utility. I repaired permissions, then
-
Hello, I was wondering if it's possible have a matrix which shows total credits by month and have drill-down groupings to display the invoice numbers for each credit. Then, once the drill-down is expanded for a particular month, be able to click on
-
Activated iphone on one computer and now cant use on another
I was in Michigan for a couple of months and that is where I bought my iPhone in July. I activated it on my friend's computer up there and now my home computer in Georgia will not even recognize my iPhone when I connect it. I have tried erasing all d
-
Help Plz i've blank LCD in Lenovo G530
Help Plz i've blank LCD in Lenovo G530 the unit is working and the power & wireless indicators is on but the LCD is blank i've allready unpluged the battery and powered the unit with the charger only and plug the battery again but still have the sam