No data in a report field with cr11.5 r2...
Hi,
After upgrade a VB6 project with crystal report 7, to VB6 with crystalreport 11.5 r2, I notice that
one field in the report have no data.
If I run the same project in a machine with vb6 and crysta report 7, the field is ok.
Some one have a idea?
Lots of changes between 7 and CR XI R2. Mostly in the database drivers and Parameter API's.
I suggest you click on the Businessobjects tab above and then Samples and Code and download the RDC COM samples for database and Parameters.
You'll also need to change your database dll reference from P2x.dll to crdb_*.dll.
Thank you
Don
Similar Messages
-
How to store/manipulate Date and long text fields with Dictionary project
I am able to save string values into my backend (SQL Server) database in my web dynpro project but I am getting errors dealing with my date string and my long text (comments) field.
I want to figure out both how I need to define the fields in the dictionary project, how to define the context variables in web dynpro, and how to code the statements to pull the values out of the context and into fields I can use in my SQL insert.
Currently I have the date defined in the dictionary project as "date" and the comments as a 256-character string.
In the web dynpro context I have the date field defined as "date" and the comments field defined as "string". Should I define a 256-character string type and use that as field type??
In the code I am using the following to get the values:
String s9 = (String) wdContext.nodeReceipt().getElementAt(wdContext.nodeReceipt().getLeadSelection()).getAttributeValue("Comments");
String s5 = (String) wdContext.nodeReceipt().getElementAt(wdContext.nodeReceipt().getLeadSelection()).getAttributeValue("DateReceived");
SimpleDateFormat sdf = new SimpleDateFormat("dd/mm/yyyy");
try {
Date dt = sdf.parse(s5);
} catch (Exception e) {
e.printStackTrace();
I then try to insert all of my values with the following code:
InitialContext ctx = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("jdbc/SAP/BC_JMS");
java.sql.Connection con = ds.getConnection();
java.sql.Statement stmt = con.createStatement();
stmt.executeUpdate("insert into AVD_GEN_REC(VENDOR,DATE_RECEIVED,TOTAL_PIECES,LOGGED_BY," +
"ADDRESSED_TO,BLDG_NO,CARRIER,TRACKING_NO, COMMENTS) values('s1','s5','s2','s6','s3','s7','s4','s8','s9')");
} catch (Exception e) {
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Exception "+e.getMessage());
Any help/ideas would be appreciated...The comment error seems to have resolved itself but I still get an error with the date field:
Exception The SQL statement "INSERT INTO "AVD_GEN_REC" ("VENDOR","DATE_RECEIVED","TOTAL_PIECES","LOGGED_BY","ADDRESSED_TO","BLDG_NO","CARRIER","TRACKING_NO","COMMENTS") VALUES ('s1','d5','s2','s6','s3','s7','s4','s8','s9')" contains the semantics error[s]: type check error: new value (element number 2) is not assignable to column "DATE_RECEIVED"
The DATE_RECEIVED is defined in the data dictionary as "date", the context variable "DateReceived" is also a "date", and the statement to pull d5 is being stored to a "Date". Is there a difference between the "Date" and "date"?
Date d5 = wdContext.currentReceiptElement().getDateReceived(); -
Help with writing and retrieving data from a table field with type "LCHR"
Hi Experts,
I need help with writing and reading data from a database table field which has a type of "LCHR". I have given an example of the original code but don't know what to change it to in order to fix it and still read in the original data that's stored in the LCHR field.
Basically we have two Function modules, one that saves list data to a database table and one that reads in this data. Both Function modules have an identicle table which has an array of fields from type INT4, CHAR, and type P. The INT4 field is the first one.
Incidentally this worked in the 4.7 non-unicode system but is now dumping in the new ECC6 Unicode system.
Thanks in advance,
C
SAVING THE LIST DATA TO DB
DATA: L_WA(800).
LOOP AT T_TAB into L_WA.
ZDBTAB-DATALEN = STRLEN( L_WA ).
MOVE: L_WA to ZDBTAB-RAWDATA.
ZDBTAB-LINENUM = SY-TABIX.
INSERT ZDBTAB.
READING THE DATA FROM DB
DATA: BEGIN OF T_DATA,
SEQNR type ZDBTAB-LINENUM,
DATA type ZDBTAB-RAWDATA,
END OF T_TAB.
Select the data.
SELECT linenum rawdata from ZDBTAB into table T_DATA
WHERE repid = w_repname
AND rundate = w_rundate
ORDER BY linenum.
Populate calling Internal Table.
LOOP AT T-DATA.
APPEND T_DATA to T_TAB.
ENDLOOP.Hi Anuj,
The unicode flag is active.
When I run our report and then to try and save the list data a dump is happening at the following point
LOOP AT T_TAB into L_WA.
As I say, T_TAB consists of different fields and field types whereas L_WA is CHAR 800. The dump mentions UC_OBJECTS_NOT_CONVERTIBLE
When I try to load a saved list the dump is happening at the following point
APPEND T_DATA-RAWDATA to T_TAB.
T_DATA-RAWDATA is type LCHR and T_TAB consists of different fields and field types.
In both examples the dumps mention UC_OBJECTS_NOT_CONVERTIBLE
Regards
C -
OBIEE 10g - Unable to see data in the report view with grand total applied
Hi,
We're facing with a strange issue.
We're working on a report view.
We're able to see data when Grand total is not applied on the report. The moment Grand Total is applied, it's showing either an empty table with NULL values or "No Results" page.
Please help.
Thanks in advance.
-RamaHi Dpk,
Thanks for your reply.
I included it in the instanceconfig.xml, but the issue still exists.
Couple of Observations
#1 - We noticed this issue when we drill down to the level which has really sparse data.
It works fine when we look at the enterprise wide report.
#2 - Works fine with few dimensional attributes and facts on the report
When we add a fact that doesn't have any value at that level, the issue starts to appear.
Thanks in advance.
-Rama -
Need to Change data in PDF form field with importData operation
This should be simple, right?
I have a PDF form that is submitted. At a certain step in the process, I need to modify the value of one field from within the process. I am using a PDF document in the default formData document variable. To do this, I am using the exportData operation from the FormDataIntegration service to get XML. I then use the setValue service to modify one node of the XML. Finally, I use the importData operation from the FormDataIntegration service to import the modified data back into the PDF.
Problem is that I am getting an error. It says: ALC-FDI-001-304: Only XDP data is supported with XFA forms.
Any advice? Jasmin, Jayan, Paul, anyone?My theory is that when you export the data you do get xdp data.
Now when you modify the node you don't have the right xPath to that node and if that's the case, it might be overwriting the entire xml.
This is causing the xml not to be in xdp data format and you get the error.
Could you post the data you get from the exportData operation and then the xml you try to use by the importData?
Jasmin -
Hello Experts,
My BW system is connected to a SRM system. In a confirmation details report, the Confirmation Number is not appearing for the Purchase Order Number. I have checked in the back-end and the Confirmation exists for the particular PO, in the ODS from which the BW report is picking up data. Please advise how to solve this issue. Thanks in advance,
Arnabarnabsinha711 wrote:
Hello Experts,
>
> My BW system is connected to a SRM system. In a confirmation details report, the Confirmation Number is not appearing for the Purchase Order Number. I have checked in the back-end and the Confirmation exists for the particular PO, in the ODS from which the BW report is picking up data. Please advise how to solve this issue. Thanks in advance,
>
> Arnab
Dear Arnab, I beleive if the data is present in the ODS/Cubes, and not displaying in BEx > should be a ACR issue. Run the Attribute Change run for the Master data used in the cubes like 0MATERIAL, 0MAT_PLANT etc for updated EBELN & EKPO-ELIKZ. Thanks! -
Changing data type on a field with populated data
Hi
I have a table that has already been populated
i wish to change the data type of one of the fields from number to varchar2
this field has the same value you in it throughout
value = 2005 and i wish to change it to 2005/06
What is the best way to do this ?
thanksAs stated in the user guide, you can change the datatype of a column only when the value of this column is NULL in all existing rows. One workaround (in 10g) would be to add another column, update the new column, drop the old column and rename the new column to the old column's name. Here's an example:
CREATE TABLE test (col1 NUMBER(8));
INSERT INTO test VALUES (2005);
COMMIT;
ALTER TABLE test add (col2 VARCHAR2(8));
UPDATE test
SET col2 = TO_CHAR(col1) || '/06';
COMMIT;
ALTER TABLE test DROP (col1);
ALTER TABLE test RENAME COLUMN col2 TO col1;C. -
Print Selection Criteria-Token in report prepared with CR
Hi,
How to print the Selection Criteria---Specially 'From Date' and 'To Date' for a report prepared with Crystal Report tool to be viewed within SAP Business One 8.8 (The report uses Token Parameters for SBO 8.8 Viewing)
Thanks,
SaikatHi Bala,
Ok...So can help me on this.......
The token in my Report is :
Date : Static-Type: Date-Allows Range Values
Within SBO 8.8 displays as Date : From <Date Selection Field> To <Date Selection Field>
Please note its a single token allowing range values.
Formula I am using: {OPOR.DocDate}>={?Date} AND {OPOR.DocDate} <={?Date}
Now I need to print the selected 'From Date' and 'To Date' in the Report.
If there is any other process to do the same then please let me know the same.
Thanks,
Saikat -
Data in One Text Field or the Other
I have two numeric fields and there need to be a value in either one or the other not both, is there a way to make this happen.
ThanksSteve,
What I was look for was if the user inputs data in the "SSN" field with would be unable to put data in the "Passport#" field and visa-versa.
Thanks -
Data fileds and key fields in DSO
Can any one explain what exactly difference between data fileds and keyfields in DSO or the concept of these two
And how to know which fields should be assigned to data filed or key field
with regards,
musaiHi Musai,
Let me take an ex. Say you have 3 fields A, B & C. Let us assume 'A' is keyfield, 'B' & 'C' are Datafields.
Lets assume the PSA data is :
A B C
001 Musai 89.9
002 Musai 89.9
003 Pavan 75.00
So when you load the data to DSO, since all the keyfield values are unique (001,002,003), all the records will get loaded to DSO.
But If PSA data is :
A B C
001 Musai 89.9
001 Musai 85.7
003 Pavan 75.00
Only 2nd & 3rd rows will be loaded to DSO since 1st & 2nd row have same value for keyfield (001). So 1st row gets overwritten(or summation depending on what is the setting in Transformation rule for C considering C is Keyfigure) by 2nd when you load to DSO. 3rd row doesn't have any problem. So that will go as it is.
Also please note that we cannot use Keyfigures as keyfield.
Hope it is clear now!
Regards,
Pavan -
No data found on Report based on a collection
Hi all,
I got a page with this 'after-header' process :
begin
if(apex_collection.collection_exists(p_collection_name => 'users')) then
apex_collection.delete_collection(p_collection_name => 'users');
end if;
apex_collection.create_collection_from_query(
p_collection_name => 'users',
p_query => 'select user_name from demo_users');
end;And then, I try to display the collection data in a report, like with this SQL statement.
select *
from apex_collections
where collection_name='users'I got a 'No data found' for this report... I try this very basic example to understand collections, and I don't know what I'm missing...
Thanks a lot
DovikHi,
No problem
Check collection naming
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/advnc.htm#CIHHCGGD
Have nice day
Br,Jari -
Error generating report job with the task name 'FSRM_Report_Task
Since this morning we have been having a problem with FSRM on Windows Server 2008 R2, it is no longer running storage reports (both scheduled and on-demand).
We get the following in the event logs:
Log Name: Application
Source: SRMREPORTS
Date: 09/06/2014 08:09:55
Event ID: 752
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: FILESERVER2.curriculum.riddlesdown.local
Description:
Error generating report job with the task name 'FSRM_Report_Task{3add1760-4e79-4141-baba-cb53391bef3e}'.
Context:
- Exception encountered = Invalid argument: StorageType = '101'
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="SRMREPORTS" />
<EventID Qualifiers="0">752</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-06-09T07:09:55.000000000Z" />
<EventRecordID>42920</EventRecordID>
<Channel>Application</Channel>
<Computer>FILESERVER2.curriculum.riddlesdown.local</Computer>
<Security />
</System>
<EventData>
<Data>Error generating report job with the task name 'FSRM_Report_Task{3add1760-4e79-4141-baba-cb53391bef3e}'.
Context:
- Exception encountered = Invalid argument: StorageType = '101'
</Data>
</EventData>
</Event>
We have uninstalled and reinstalled the FSRM role service but are still having the same problem.
Anybody have any ideas?Hi,
From the error message, it failed because of "invalid argument: storagetype = '101' ".
101 means the storage type is "system" + "cache". Is there any change on your storage before the issue occurs? For example whether the source storage is changed?
FsrmStorageModuleType enumeration
http://msdn.microsoft.com/en-us/library/dd392346(v=vs.85).aspx
If you have any feedback on our support, please send to [email protected] -
** Please help urgently ** Budget upload field with leading zeros
We need to load a characteristic that has leading zeros. For example 0000350. When saving down to CSV, we lose the leading zeros (0000) so that only 350 is loaded into BW. Saving the codes as 'text' in excel does not seem to help.
We cannot therefore see the name for any of these codes when refreshing the workbook in BW.
Could some please urgently tell us the correct method to save the file for loading into the BW infopackage, with all zeros intact ?
Regards, FrederickHi Frederick,
Just some additional thoughts,
assuming field A1 in Ecel contains 350 and you want to create a string with 8 digits, you could use formula '=text(A1;"00000000")' in an empty column and copy it back to column A. Then 00000350 should be provided in A1. This can be saved in a normal .csv file and be opened with a text editor (e.g. notepad) in order to check content.
If you don't want to manipulate Excel data, transformation to a field with leading zeros can be easily be processed with a routine in transfer rules.
Regards
Joe -
Replace the empty field with below data content field in xml pub report
Hi Gurus,
Please give me the solution for the Replacement of empty field with below data content field in XML PUBLISHER REPORT.
ex:
Name:Philips.M
Address 1:XP APPTS,
Address 2:S:R ROAD
Address 3:
COUNTRY:INDIA
Here i have to get only address 1,address 2 and the COUNTRY data.I dont want to display Address 3 field here.
Thanks,
DavidI'm not sure if this answers your question but you could try putting out the address all in one item in the SQL eg somthing like:
address1 || DECODE(address1, NULL, NULL, 'newline character') ||
address2 || DECODE(address2, NULL, NULL, 'newline character') ||
address3 || DECODE(address3, NULL, NULL, 'newline character')
where 'newline character' is somthing like CHR(12)
Dave -
Error (ORA-01403) saveing data form a report with apex_item items
Hi all,
I've a problem saveing data that's inserted into a report which I created using apex_item items. Reproducing the exact issue on apex.oracle.com will take me a lot of time, and I don't know if I really can reproduce this matter... So I hope I can explain my problem clearly enough, here...
The global story of the application is that its an application used for measureing objects. For these objects there are templates, with default properties. When measureing an object, the user must fill in those properties for the object. The report is build dynamicly, becouse each object has different properties and each property could be of an other kind (number, text, list, counter [=number field with add and substract buttons], and date). Depending on the type of the property, the report has to show an other item to fill.
The query for constructing this report is like this:
select defprop.proptyp_id,
apex_item.hidden(41,defprop.id) defprop_id,
defprop.nam,
decode(proptyp.id,
1, apex_item.text(p_idx=>42,p_value=>''||
decode(defprop.srt, 'CONSTANT', (select WRD
from measurement_prop
where defprop_ID = defprop.id
AND measurement_id IN
(SELECT ID
FROM measurement
WHERE OBJ_ID = obj.id
AND DAT IN
(SELECT latest_date
from object_instance
WHERE ID = obj.id)))
||'' ,p_attributes=>'class=case5_num'),
2, apex_item.text(p_idx=>42,p_value=>''||
decode(defprop.srt, 'CONSTANT', (select WRD
from measurement_prop
where defprop_ID = defprop.id
AND measurement_id IN
(SELECT ID
FROM measurement
WHERE OBJ_ID = obj.id
AND DAT IN
(SELECT latest_date
from object_instance
WHERE ID = obj.id)))
||''),
3, apex_item.select_list_from_query(p_idx=>42,p_value=>''||
decode(defprop.srt, 'CONSTANT', (select WRD
from measurement_prop
where defprop_ID = defprop.id
AND measurement_id IN
(SELECT ID
FROM measurement
WHERE OBJ_ID = obj.id
AND DAT IN
(SELECT latest_date
from object_instance
WHERE ID = obj.id)))
||'', p_query=> 'select wrd, id from property_typewrd where proptyp_id = ' || proptyp.id ||' order by vlgnum', p_show_null=> 'NO'),
4, apex_item.text(p_idx=>42,p_value=>''||
decode(defprop.srt, 'CONSTANT', (select WRD
from measurement_prop
where defprop_ID = defprop.id
AND measurement_id IN
(SELECT ID
FROM measurement
WHERE OBJ_ID = obj.id
AND DAT IN
(SELECT latest_date
from object_instance
WHERE ID = obj.id)))
||'',p_attributes=>'class=case5_num')
|| '<a name="add_f02" href="#"><img alt="add" src="#WORKSPACE_IMAGES#plusBig.gif"/></a> '
|| '<a name="sub_f02" href="#"><img alt="sub" src="#WORKSPACE_IMAGES#minusBig.gif"/></a>',
5, apex_item.date_popup(p_idx=>42, p_value=>''||
decode(defprop.srt, 'CONSTANT', (select WRD
from measurement_prop
where defprop_ID = defprop.id
AND measurement_id IN
(SELECT ID
FROM measurement
WHERE OBJ_ID = obj.id
AND DAT IN
(SELECT latest_date
from object_instance
WHERE ID = obj.id)))
||''),
oms
) waarde
from default_property defprop,
object_instance obj,
property_type proptyp
where defprop.stdobjver_id = obj.stdobjver_id
and defprop.proptyp_id = proptyp.id
and obj.id = :P2200_ID_INVThis report works fine. Depending on the type of the property it shows a numberic field, text field, selectlist (with right values), counter field or date field.
If the default property is set to a 'CONSTANT' value, the last known value is filled in.
With a javascript I check the numberic field value and achieve the counterfield to add or substract values when 'plus' or 'minus' is clicked.
This javascript is placed in the field 'Execute when Page Loads' in the page properties in APEX. Here is the code:
/*Execute when page loads*/
/*Allow only numbers */
number_elem = $('input[name=f42].case5_num');
number_elem.keypress(function(event) {
if (event.which && (event.which < 46 || event.which > 57 || event.which == 47) && event.keyCode != 8) {
event.preventDefault();
if (event.which == 46 && $(this).val().indexOf('.') != -1) {
event.preventDefault();
//for mouse events, remove any non numeric characters
number_elem.bind('mouseup mousedown mouseleave', function(event) {
this.value = this.value.replace(/[^0-9]/g, '');
/* Subtract Button */
$('a[name="sub_f42"]').click( function() {
number_elem = $(this).siblings('input[name=f42].case5_num');
currVal = number_elem.val();
if ( isNaN( currVal) ){
elemVal = 0;
else {
elemVal = Number(currVal);
if (elemVal > 0)
number_elem.val(elemVal-1);
else
{ elemVal = 0; }
/* Add Button */
$('a[name="add_f02"]').click( function() {
number_elem = $(this).siblings('input[name=f42].case5_num');
currVal = number_elem.val();
if ( isNaN( currVal) ){
elemVal = 0;
else {
elemVal = Number(currVal);
number_elem.val(elemVal+1);
});Those two codes makes my report works fine. So far I'm happy. But now I want the data, which the user fills in the items, to be saved.
So I created a process that should do this for me (it wil run after the user hits a button), here is the code:
declare
v_objmet_id number := 0;
begin
select measurment_seq.nextval
into v_objmet_id
from dual;
insert into measurment
( id
, obj_id
, dat
values
( v_objmet_id
, :P2200_ID_INV
, :P2200_METDAT_INV
/*Loop trough the values (g_f42 holds the value of the property)*/
for i in 1 .. apex_application.g_f42.count loop
/*g_f41 holds the key to the default property*/
if apex_application.g_f41(i) is not null and
apex_application.g_f41(i) > 0 then
insert into measurment_prop
( measrument_id
, defprop_id
, wrd)
values
( v_objmet_id
, apex_application.g_f41(i)
, apex_application.g_f42(i)
end if;
end loop;
end;After running this process, the application branches back to the page, clearing the cache and set some items I use for filtering an other report with their own values.
Both the process and the branche have a 'when button pressed' condition, where the same button is filled in. The branche fires on submit: after processing.
When I hit the button to save the data, I get an error: ORA-01403: no data found
In the debug info I can find there is encountered an unhandeled exception in the process, but I don't know what's going wrong...
I thought it could be something with the date field, I want to save, so I put it in a to_date() with the right format, but I still got the error...
I've also checked if the query which fetches the nextval of the sequence is correct, and it is, no typeing error in the sequence name, or something.
I'm using APEX 4.0.2
Edited by: Mir on 28-jun-2011 10:25
Changed some code of the javascript, it directed to the wrong item ID, now its correctMy problem is solved. The error occured when application item g_f41 was accessed, so my application couldn't find the data, the user putted in there. I now pasted this part of the sql, to the other apex_item field, so it became one field and now it works correctly:
select [...]
apex_item.hidden(41,defprop.id) ||
decode(proptyp.id,
1, apex_item.text(p_idx=>42,p_value=>''||
decode(defprop.srt, 'CONSTANT', (select WRD
from measurement_prop
where defprop_ID = defprop.id
AND measurement_id IN
(SELECT ID
FROM measurement
WHERE OBJ_ID = obj.id
AND DAT IN
(SELECT latest_date
from object_instance
WHERE ID = obj.id)))
[... etc ...]
Maybe you are looking for
-
Windows Server 2008 SP2 X86 Product Key Issue
I am trying to create a VM using a Template, but facing an issue with respect to Product Key. The VHD I am using is of Windows Server 2008 SP2 X86. If I do not provide Product Key in the Template/Guest OS Profile, the Virtual Machine creation fails
-
How can ZIP files be opened from a PDF file using Preview. First, how can you see attachments within Preview, and then, how can it be opened.
-
Chinese can't display correctly
Hi, i am encountering a strange problem. I am trying to run a jsp on OC4J 10.1.3.3 StandAlone and struts-1.3.9 I'm setting up Chinese in ApplicationResources_zh.properties.But when I use in test.jsp. Web page display is to acquiesce in language "West
-
Changes to Standard SAPScript of F.27 Tcode
Hi, I found the script name that is getting generated the execution of F.27 Tcode (i.e- R140_ACC_STAT_01) and also found its respective print program(i.e - RFKORD10). I copied them both into z-script and z-driver respectively. Now the amount which is
-
Arch does not umount busy disks before shutdown?
Hello, Been using Arch on my Laptop, Desktop, Firewall and HTPC for a couple years now. I really like the setup. When shutting down the pc, Arch runs the shutdown scripts that umount the mounted volumes. If the volume is busy, it gives me a message: