Help - query dates in Object browser!
Hi to everybody,
I need help on simple thing...
how can I build a query for dates in Object browser, in Oracle XE 10g?
I tried: >01-jan-2010, >"01-jan-2010", >'01-jan-2010', <>01-jan-2010 + ... all kind of derivations and nothing.
I always receive report error:
ORA-01858: a non-numeric character was found where a numeric was expected
I just want to filter some dates ...
thanks
With dates, its usually better to be specific with the date format, and not depend on "default" settings although (for US-English) the '01-jan-2011' should have worked, maybe not.
Are you trying to filter for a specific date, or range, i.e. ... where ... <date column> = <some date> or perhaps where <date column> between <date1> and <date2> ... ?
When looking for a date, it can be helpful to ignore the time component of a date field with the TRUNC() function:
select ... where trunc( <date column>) = to_date( '01-01-2011','yyyy-mm-dd') ...Note the to_date with the format mask, that will avoid troubles with assumptions about default date formats (which can also change with the locale ... i.e. UK-English the default client date format is 'dd-mm-yyyy')
Similar Messages
-
Apex 4.0 - Can see view data in SQL*Plus but no data in Object Browser
Hi There,
I have just started using Apex 4.o and migrated some apps. I have an issue with a report, but see the same issue with Object browser, which is easier to describe.
I have a view:
create or replace view V_PLJ_USERDEF_CODES (
CODE_SET_ID,
CODE_SET_CODE,
CODE_SET_DESC,
CODE_ID,
CODE_SYS_CODE,
CODE_VALUE,
CODE_DESC,
DISPLAY_SEQ,
DISPLAY_FLAG,
LANGUAGE_CODE) as
select CS.CODE_SET_ID,
CS.CODE_SET_CODE,
CS.CODE_SET_DESC,
C.CODE_ID,
C.CODE_SYS_CODE,
C.CODE_VALUE,
C.CODE_DESC,
C.DISPLAY_SEQ,
C.DISPLAY_FLAG,
C.LANGUAGE_CODE
from PLJ_CODES C,
PLJ_CODE_SETS CS
where C.CODE_SET_ID = CS.CODE_SET_ID
and CS.CODE_SET_TYPE_CODE = SYS_CONTEXT('PLJUMPSTART','C_USERDEF_CODE_SET');This returns data in SQL*Plus, but no data in Object Browser OR report region based on this view.
Workspace parses in the same schema as tested in SQL*Plus.
If, in report, I swap out view, and use underlying table - no problem.
Any ideas -
thanks
PHi all,
Thanks for getting back so promptly.
It just seems weird to me, as tables are just fine, but not views.
In the underlying schema:
SQL> sho user
USER is "ICSREPORTING"
SQL> select count(*) from plj_codes;
COUNT(*)
107
SQL> select count(*) from v_plj_userdef_codes;
COUNT(*)
29And in the APEX schema
SQL> sho user
USER is "APEX_040000"
SQL> select count(*) from icsreporting.plj_codes;
select count(*) from icsreporting.plj_codes
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> select count(*) from icsreporting.v_plj_userdef_codes;
select count(*) from icsreporting.v_plj_userdef_codes
ERROR at line 1:
ORA-00942: table or view does not exist
SQL>However, in SQL browser, I can see the data in PLJ_CODES but in V_PLJ_USERDEF_CODES, just the message "This view has no data". Indeed, it is like this for all views.
I even explicitly granted access to APEX_040000 but no good.
In fact, I would like to know more about how Apex gets access to do DML against the underlying parsing schema(s).
This is a little frustrating though. It worked just fine in lots of apps in version 2.1 to 3.2
Am I missing something
paul
p.s I knew there would be a question about the context, but I had already checked that. :)
Edited by: PJ on Nov 19, 2010 4:09 AM -
Entering data through Object Browser..
I have one weird question, When I try to enter 500 jap chars(2 bytes each) in a field defined as varchar2(500)
directly through a Database tool (specifically Object Browser), I was able to successfully enter it ( which shouldn't be the case
since the 500 jap chars = 1000 bytes)..When I do it through INSERT statement it's giving me the ORA-01401 error(data length
overflow error) which is really the expected result.
Why is this so? Any explanations?
Thanks!You can greatly improve your chance of receiving a helpful answer to your question if you state the version (MS or NW) of BPC which you are using.
Also notice the sticky [note|Please do not post BPC, SSM or FI/CO questions here!; at the top of this forum whereby we announced new dedicated forums for BPC which are the proper place to post your questions regarding BPC in the future to be able to reach the right audience for your question.
Thanks and best regards,
[Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
SAP Labs, LLC
BusinessObjects Division
Americas Applications Regional Implementation Group (RIG) -
Dynamically built query on execution How to save the data in Object Type
Hi,
In pl/sql I am building and executing a query dynamically. How can I stored the output of the query in object type. I have defined the following object type and need to store the
output of the query in it. Here is the Object Type I have
CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPE AS OBJECT(
pkid NUMBER,
pkname VARCHAR2(100);
pkcity VARCHAR2(100);
pkcounty VARCHAR2(100)
CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPETAB AS TABLE OF FIRST_RECORDTYPE;Here is the query generated at runtime and is inside a LOOP
--I initialize my Object Type*
data := new FIRST_RECORDTYPETAB();
FOR some_cursor IN c_get_ids (username)
LOOP
x_context_count := x_context_count + 1;
-- here I build the query dynamically and the same query generated is
sql_query := 'SELECT pkid as pid ,pkname as pname,pkcity as pcity, pkcounty as pcounty FROM cities WHERE passed = <this value changes on every iteration of the cursor>'
-- and now I need to execute the above query but need to store the output
EXECUTE IMMEDIATE sql_query
INTO *<I need to save the out put in the Type I defined>*
END LOOP;
How can I save the output of the dynamically built query in the Object Type. As I am looping so the type can have several records.
Any help is appreciated.
Thankshai ,
solution for Dynamically built query on execution How to save the data in Object Type.
Step 1:(Object creation)
SQL> ED
Wrote file afiedt.buf
1 Create Or Replace Type contract_details As Object(
2 contract_number Varchar2(15),
3 contrcat_branch Varchar2(15)
4* );
SQL> /
Type created.
Step 2:(table creation with object)
SQL> Create Table contract_dtls(Id Number,contract contract_details)
2 /
Table created.
Step 3:(execution Of procedure to insert the dynamic ouput into object types):
Declare
LV_V_SQL_QUERY Varchar2(4000);
LV_N_CURSOR Integer;
LV_N_EXECUTE_CURSOR Integer;
LV_V_CONTRACT_BR Varchar2(15) := 'TNW'; -- change the branch name by making this as input parameter for a procedure or function
OV_V_CONTRACT_NUMBER Varchar2(15);
LV_V_CONTRACT_BRANCH Varchar2(15);
Begin
LV_V_SQL_QUERY := 'SELECT CONTRACT_NUMBER,CONTRACT_BRANCH FROM CC_CONTRACT_MASTER WHERE CONTRACT_BRANCH = '''||LV_V_CONTRACT_BR||'''';
LV_N_CURSOR := Dbms_Sql.open_Cursor;
Dbms_Sql.parse(LV_N_CURSOR,LV_V_SQL_QUERY,2);
Dbms_Sql.define_Column(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER,15);
Dbms_Sql.define_Column(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH,15);
LV_N_EXECUTE_CURSOR := Dbms_Sql.Execute(LV_N_CURSOR);
Loop
Exit When Dbms_Sql.fetch_Rows (LV_N_CURSOR)= 0;
Dbms_Sql.column_Value(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER);
Dbms_Sql.column_Value(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH);
Dbms_Output.put_Line('CONTRACT_BRANCH--'||LV_V_CONTRACT_BRANCH);
Dbms_Output.put_Line('CONTRACT_NUMBER--'||OV_V_CONTRACT_NUMBER);
INSERT INTO contract_dtls VALUES(1,CONTRACT_DETAILS(OV_V_CONTRACT_NUMBER,LV_V_CONTRACT_BRANCH));
End Loop;
Dbms_Sql.close_Cursor (LV_N_CURSOR);
COMMIT;
Exception
When Others Then
Dbms_Output.put_Line('SQLERRM--'||Sqlerrm);
Dbms_Output.put_Line('SQLERRM--'||Sqlcode);
End;
step 4:check the values are inseted in the object included table
SELECT * FROM contract_dtls;
Regards
C.karukkuvel -
"Object Browser" Table Query "Drill Up" Fails with ORA-00942
I feel I have tested this capability in an earlier release of apex and it worked flawlessly... :)
but currently it is not. :(
It seems to be a problem with [ APP_ID=4500 Page=46 ].
To Duplicate the error...
Note: This example assumes "Sample Application" is loaded to the workspace.01) Logon as an APEX developer.
02) Click on "SQL Workshop"...
03) Click on "Object Browser"...
04) Click on table "DEMO_ORDERS"...
05) Click on "Data" [ between "Table" and "Indexes" ]...
06) Click on "Query" [ below "Table" ]...
07) Select "Show" in "Drill Up and "Drill Down Links"...
08) Select "Check All"...
09) Click the "Query" button...
10) Once the result is displayed...
Click on the demo_customers in the first "Drill Up" column.
...after the click in "step 10" above...
the following error will be return.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Current Table/View: DEMO_CUSTOMERS
4500_46_RET_TO_QUERY
failed to parse SQL query:
ORA-00942: table or view does not exist
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
"Drill Up" or "Drill Down" both fail with this message.
I am currently running apex version 3.2.0.00.27 and also confirmed that the error occurs in the current apex demo website... which is currently at version 3.2.1.00.11.
Thanks in advance... :)
v/r
RJonesJason ORCL wrote:
I think you misunderstood.
I call the apps API from custom code.
It runs the API with no issue. It fails when it tries to access the HR table. So APPS cannot access HR.
Are you saying I need to modify APPS code?? That is not likely. Are you saying I need to create a public synonym for an HR table for APPS? That seems unlikely also...OK, looks like there is a typo in your first post and the object name is IRC_ASSIGNMENT_STATUSES.
From eTRM, I see the following:
TABLE: HR.IRC_ASSIGNMENT_STATUSES
http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=IRC_ASSIGNMENT_STATUSES&c_owner=HR&c_type=TABLE
APPS.IRC_ASSIGNMENT_STATUSES
http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=IRC_ASSIGNMENT_STATUSES&c_owner=APPS&c_type=SYNONYM
So, this indicates that apps user should be able access this table without a prefix.
SQL> show user
USER is "APPS"
SQL> desc IRC_ASSIGNMENT_STATUSES
Name Null? Type
ASSIGNMENT_STATUS_ID NOT NULL NUMBER(15)
ASSIGNMENT_ID NOT NULL NUMBER(15)
ASSIGNMENT_STATUS_TYPE_ID NOT NULL NUMBER(15)
STATUS_CHANGE_DATE NOT NULL DATE
STATUS_CHANGE_REASON VARCHAR2(240)
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER(15)
LAST_UPDATE_LOGIN NUMBER(15)
CREATED_BY NOT NULL NUMBER(15)
CREATION_DATE NOT NULL DATE
OBJECT_VERSION_NUMBER NOT NULL NUMBER(9)Thanks,
Hussein -
Bug: object browser shows invalid identifier when browsing table data
Hello,
getting the following message:
failed to parse SQL query:
ORA-00904: "some column name": invalid identifier
to reproduce,
install the sample application in application express
open object browser (tables are displayed)
click on first DEMO table
in the right panel, click DATA to view contents of table
click on 2nd DEMO table
repeat process for each table, eventually it will appear; mileage varies between table clicks to error
the data can be displayed without errors by simply clicking DATA link again
I don't find a particular pattern as to when it appears (time between clicks, order of tables clicked)
my environment: oracle xe, appex on local machine with windows xp
Thanks.
AlbertHello,
This is a known bug/issue because of how the object browser iframe interacts with some of the ajax data pulls.
It will be fixed in 3.0 when we drop the iframe from the object browser and make it fully Ajax based.
Carl -
Object browser displays only First 31 columns in Data section of a table.
I need to download data from a table which has almost 60 columns. When i selected table from object browser and clicked on data section of this table, only first 31 columns are displayed and when clicked on download, only the data for those 31 columns is displayed. How to download data of all colums of this table
Hello Jim
I have the same problem, but my limit is 21 columns. I think the limit is caused by the DataReader SchemaTable. Check the following value:
IDataReader.GetSchemaTable().Columns.Count
Columns in the SchemaTable are Metadata (ColumnName, ColumnSize, DataType, AllowDBNull...), the columns that are selected with the DataReader are stored in the SchemaTable Rows Property.
For Oracle and SQLServer i used this workaround:
DataTable dataTable = IDataReader.GetSchemaTable();
while (dataTable.Columns.Count < dataTable.Rows.Count)
dataTable.Columns.Add("Dummy" + dataTable.Columns.Count.ToString(), typeof(bool));
I think developpers of CR use the Columns.Count instead of Rows.Count property when getting the data out of the DataReader.
Regards,
Walter -
How to create a sequence in Object Browser!!
Hi All,
I just wonder that while working on "Sequence" in Obejct Browser.
Say for example i have a created a new sequence using object browser then i have redirected to Data tab->Query under this we can select the
default values. I have tried to give the like '%s' under column conditon which is thrrowing error like query is not valid .
Can anybody help me out how to implemnt the column condtion in Sequnece.
Thanks,
Anoo..OK
I go New -> Table
Name: Anoo
COlumns:
1: ID , Datatype: Number
2: Value , Datatype: Varchar2; precision:20
Primary Key:
Populated from new sequence
Primary key specified as : ID
Sequence name: anoo_seq
Foreign key: n/a
Constraints: n/a
Confirm
Table Created --
Anoo selected.
Go to Data tab. Select insert row
In the value field, I enter some data (not in Id as it's populated from the sequence). Click create. This returns me to view of existing data (in my case, only the new row I inserted)
As far as your query being invalid, without knowing what is in your table, and what you inserting in your query, and what the exact error, its a bit difficult to know.
Trent -
ORA-01840 error on inserting row trough object browser
Dear Oracle Community,
I'm getting the ORA-01840: Input value not long enough for date format error when I try to insert a row with the date value 24-MAY-10 with my object browser.
This is the problem column:
Column Name | Data Type| Nullable| Default | Primary Key
SIGNUPDATE |DATE |No | - | -
Now this will look like I'm using the wrong date format so I have googled and found that I should use the following query to check for the correct date format my database uses.
select * from nls_session_parameters where parameter = 'NLS_DATE_FORMAT';
This returns the DD-MON-RR format so I think I'm inserting the correct date format here.
What am I doing wrong?
I have already tried inserting with the following formats and tried replacing the - sign with the / sign.
DD-MON-RR
DD-MON-YY
DD-MON-YYYY
I have also tried using the SYSDATE is in the DD-MON-RR format trough the SQL commandline.
I'm feeling like an idiot this should be simple right?
Please help me out here this is frustrating, many thanks in advance.
J Nijmanusing the SYSDATE is in the DD-MON-RR format trough the SQL commandlineIn sqlplus try:
insert into <tablename> ( <date columnname> [, ... ] ) values ( sysdate [, ...] );
To get a sysdate date value added. Or specify the format string with a to_date expression:
insert into <tablename> ( <date columnname> [, ... ] ) values ( to_date( '24-may-10', 'dd-mon-yy') [, ... ] );
The engine isn't picky about separators agreeing with the format string, most any character in place of the '-' dash is acceptable.
Now to get an ora-1840 out of the object browser (Table/Data/Insert Row), I'm not having any luck trying to duplicate that. With the default nls_date_format 'DD-MON-YY' even trying bad dates (i.e. 30-feb-10 or 30-feb-2010, or even 31-apr-10) it either does an ora-1839: date not valid for month specified, or with a four digit year it gives an ora-1830: date format picture ends before converting entire input string.
Any RDBMS presents programmers with date and datetime challenges, its not just an oracle-frustration thing ;) -
Download function in SQL Workshop - Object Browser
I am an APEX newbie, trying to download the data from a view into a .csv file. I am doing this in SQL Workshop, in the Object Browser - I click the 'download' link at the bottom of the page and it allows me to dump the data to a .csv file - no problem. My issue is this: it is only downloading the first 500 rows. How can I tell it to download all rows?
Thanks in advance for your help...
KennyTry this...
In object browser,
1. Click Data (next to Table link on top).
2. Then click on Query.
a. If you are selecting all rows, check on the Check All checkbox. If not select the appropriate columns.
b. Then click Query
3. Now you will see the Display option on the top.
4. Select number of rows from drop down.
5. Click Go
6. Now download.
Hope this helps!
Thanks! -
Delay when querying from CUBE_TABLE object, what is it?
Hi Guys,
We are using Oracle OLAP 11.2.0.2.0 with an 11g Cube, 7 Dimensions, Compressed and partitioned by Month.
We have run into a performance issue when implementing OBIEE.
The main issue we have is a delay while drilling on a hierarchy. Users have been waiting 7-12 seconds per drill on a hierarchy, and the query is only returning a few cells of data. We have managed to isolate this to slow performing queries on CUBE_TABLE.
For example, the following query returns one cell of data:
SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
WHERE
FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
AND FINSTMNT_VIEW.COMPANY IN ('E01' )
AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
AND FINSTMNT_VIEW.PRODUCT IN ('PT' )
AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
AND FINSTMNT_VIEW.SITE IN ('C010885' )
AND FINSTMNT_VIEW.TIME IN ('JUN11' ) ;
1 Row selected in 4.524 Seconds
Note: FINSTMNT_VIEW is the automatically generated cube view.
CREATE OR REPLACE FORCE VIEW "SCHEMA1"."FINSTMNT_VIEW" ("BASE","REPORT_TYPE", "COMPANY", "SCENARIO", "PRODUCT", "ACCOUNT", "SITE", "TIME")
AS
SELECT "BASE", "REPORT_TYPE", "COMPANY", "SCENARIO", "PRODUCT", "ACCOUNT", "SITE", "TIME"
FROM TABLE(CUBE_TABLE('"SCHEMA1"."FINSTMNT"') ) ;
If we increase the amount of data returned by adding to the query, it only increased the query time by .4 seconds
SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
WHERE
FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
AND FINSTMNT_VIEW.COMPANY IN ('E01' )
AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
AND FINSTMNT_VIEW.PRODUCT IN ('PT' )
AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
AND FINSTMNT_VIEW.SITE IN ('C010885', 'C010886', 'C010891', 'C010892', 'C010887', 'C010888', 'C010897', 'C010893', 'C010890', 'C010894', 'C010896', 'C010899' )
AND FINSTMNT_VIEW.TIME IN ('JUN11' ) ;
12 rows selected - In 4.977 Seconds
If we increase the data returned even more:
SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
WHERE
FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
AND FINSTMNT_VIEW.COMPANY IN ('ET', 'E01', 'E02', 'E03', 'E04' )
AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
AND FINSTMNT_VIEW.PRODUCT IN ('PT', 'P00' )
AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
AND FINSTMNT_VIEW.SITE IN ('C010885', 'C010886', 'C010891', 'C010892', 'C010887', 'C010888', 'C010897', 'C010893', 'C010890', 'C010894', 'C010896', 'C010899' )
AND FINSTMNT_VIEW.TIME IN ('JUN11', 'JUL11', 'AUG11', 'SEP11', 'OCT11', 'NOV11', 'DEC11', 'JAN12') ;
118 rows selected - In 14.213 Seconds
If we take the time for each query and divide by the number of rows, we can see that querying more data results in a much more efficient query:
Time/Rows returned:
1 Row - 4.524
12 Rows - 0.4147
118 Rows - 0.120449153
It seems like there is an initial delay of approx 4 seconds when querying the CUBE_TABLE object. Using AWM to query the same data using LIMIT and RPR is almost instantaneous...
Can anyone explain what this delay is, and if there is any way to optimise the query?
Could it be the AW getting attached before each query?
Big thanks to anyone that can help!Thanks Nasar,
I have run a number of queries with logging enabled, the things you mentioned all look good:
Loop Optimization: GDILoopOpt COMPLETED
Selection filter: FILTER_LIMITS_FAST 7
ROWS_FAILED_FILTER 0
ROWS_RETURNED 1
Predicates: 7 pruned out of 7 predicates
The longest action I have seen in the log is the PAGING operation... but I do not see this on all queries.
Time Total Time OPERATION
2.263 27.864 PAGING DYN_PAGEPOOL TRACE GREW 9926KB to 59577KB
1.825 25.601 PAGING DYN_PAGEPOOL TRACE GREW 8274KB to 49651KB
1.498 23.776 PAGING DYN_PAGEPOOL TRACE GREW 6895KB to 41377KB
1.232 22.278 PAGING DYN_PAGEPOOL TRACE GREW 5747KB to 34482KB
1.17 21.046 PAGING DYN_PAGEPOOL TRACE GREW 4788KB to 28735KB
1.03 19.876 PAGING DYN_PAGEPOOL TRACE GREW 3990KB to 23947KB
2.808 18.846 PAGING DYN_PAGEPOOL TRACE GREW 3325KB to 19957KB
What is strange is that the cube operation log does not account for all of the query time. For example:
SELECT "BASE_LVL" FROM TABLE(CUBE_TABLE('"EXAMPLE"."FINSTMNT"'))
WHERE
"RPT_TYPE" = 'MTD' AND
"ENTITY" = 'ET' AND
"SCENARIO" = 'ACTUAL' AND
"PRODUCT" = 'PT' AND
"GL_ACCOUNT" = 'APBIT' AND
"CENTRE" = 'TOTAL' AND
"TIME" = 'YR09';
This query returns in 6.006 seconds using SQL Developer, if I then take the CUBE_OPERATION_LOG for this query and subtract the start time from the end time, I only get 1.67 seconds. This leaves 4.3 seconds unaccounted for... This is the same with the my other queries, see actual time and logged time below:
Query Actual Logged Variance
S3 6.006 1.67 4.336
L1 18.128 13.776 4.352
S1 4.461 0.203 4.258
L2 4.696 0.39 4.306
S2 5.882 1.575 4.307
Any ideas on what this could be or how I can capture this 4.3 second overhead?
Your help has been greatly appreciated. -
How to handle a large number of query parameters for a Browse screen
I need to implement an advanced search functionality in a browse screen for a large table. The table has 80+ columns and therefore will have a large number of possible query parameters. The screen will be built on a modeled query with all
of the parameters marked as optional. Given the large number of parameters, I am thinking that it would be better to use a separate screen to receive the parameter input from the user, rather than a Popup. Is it possible for example to have a search
button on the browse screen (screen a) open a new screen (screen b) that contains all of the search parameters, have the user enter the parameters they want, then click a button to send all of the parameters back to screen a where the query is executed and
the search results are returned to the table control? This would effectively make screen b an advanced modal window for screen a. In addition, if the user were to execute the query, then want to change a parameter, they would need to be able to
re-open screen b and have all of their original parameters still set. How would you implement this, or otherwise deal with a large number of optional query parameters in the html client? My initial thinking is to store all of the parameters in
an object and use beforeShown/afterClosed to pass them between the screens, but I'm not quite sure how to make that work. TIAWow Josh, thanks. I have a lot of reading to do. What I ultimately plan to do with this (my other posts relate to this too), is have a separate screen for advanced filtering that also allows the user to save their queries if desired.
There is an excellent way to get at all of the query information in the Query_Executed() method. I just put an extra Boolean parameter in the query called "SaveQuery" and when true, the Query_Executed event triggers an entry into a table with
the query name, user name, and parameter value pairs that the user entered. Upon revisiting the screen, I want the user to be able to select from their saved queries and load all the screen parameters (screen properties) from their selected query.
I almost have it working. It may be as easy as marking all of the screen properties that are query parameters as screen parameters (not required), then passing them in from the saved query data (filtered by username, queryname, and selected
item). I'll post an update once I get it. Probably will have some more questions as I go through it. Thanks again! -
In application express under object browser i cant view the list of tables
Hi,
In the application Express workspace when i click on Object Browser, we have a list of existing tables which displays. But cant view the table list now. could you please help. I can retrieve the data from the table in the region. I dont know how it got hidden.
Regards,Please tell us your first name and put it into your handle and profile to help us.
...we have a list of existing tables which displays.
But cant view the table list now.
cant -> can't
Aren't those contradictory statements?
What is your version of Application Express?
Scott -
Collect metrics failed because 'Query Datacenter Managed Object Reference' is not executed
Hello,
This is my first post on this forum; I am working for a Cisco partner.
I am working on Tidal Enterprise Orchestrator 2.3.0.441 (hotfix1 and 2, content update 1), part of CIAC starter edition.
Scheduled Collect metrics failed in 'vSphere Datacenter Sync' and in 'vSphere Cluster Data Sync' parts
Problem is at the level of 'Query Datacenter Managed Object Reference'
Input is Datacenter name (well defined, value is not '*'), but this box is not executed (stay white). Next box : 'Set Datacenter MOR' define a variable with value 'Datacenter-' instead of 'Datacenter-[output of Query Datacenter Managed Object Reference]. And finally 'Create Cluster table" failed because a root element is missing (the datacenter name)
So my question is why 'Query Datacenter Managed Object Reference' is not executed ?
I change nothing in the workflow, and Datacenter is normally well defined.
thank you for your help,
Cheers,
NicolasThis particular utility workflow is set to not-archive completed instances.
This means that, after it finishes, it is not saved to the database and you can't see the runtime information. It improves performance and saves database space, but does make troubleshooting a little more roundabout.
You'll want to turn on archiving temporarily to see what the error message is. Open the process, go to the Options tab, and check the "Archive completed instances" box. -
Hideing a Column in ALV Table which is Displaying the POWL Query data
Hi SDNers,
I want to hide a column of ALV Table which is displaying my POWL Query data in it and hideing should be based on the Role as well. i.e few of the role the column shoudl be hidden and few of the roles should have the Column visible.
waiting for the Valueble Answers.
Thanks & Regards,
GovinduHai Kris,
I took help from ur link and i declared a global attribute request_number.
and i created an event handler ON_ALV_INSERT and did the follwing coding for giving default value wen ever am inserting new row.
FIELD-SYMBOLS: <wa_row> LIKE LINE OF r_param->t_inserted_rows.
DATA bill_details TYPE REF TO zdom_bill_detail.
LOOP AT r_param->t_inserted_rows ASSIGNING <wa_row>.
bill_details ?= <wa_row>-r_value.
IF bill_details->REQ_NUMBER IS INITIAL.
DATA lo_nd_bill_detail TYPE REF TO if_wd_context_node.
DATA lo_el_bill_detail TYPE REF TO if_wd_context_element.
DATA ls_bill_detail TYPE wd_this->Element_bill_detail.
navigate from <CONTEXT> to <BILL_DETAIL> via lead selection
lo_nd_bill_detail = wd_context->get_child_node( name = wd_this->wdctx_bill_detail ).
lo_el_bill_detail = lo_nd_bill_detail->get_element( index = <wa_row>-index ).
lo_el_bill_detail->set_attribute(
EXPORTING
name = 'REQ_NUMBER'
value = wd_comp_controller->request_number
Wen am setting the value of wd_comp_controller->request_number to my context attribute am getting NULL object ref error.
lo_el_bill_detail->set_attribute(
name = `REQ_NUMBER`
value = wd_comp_controller->request_number ).
Pls give some suggestions,
Thanks in Advance,
Nalla.B
Maybe you are looking for
-
Sluggish and Jerky scrolling on Macbook Pro (Retina)
The Problem Over the past few months or perhaps longer, I have noticed poor performance with scrolling and responsiveness of my Mac when browsing the web and performing normal functions. It was often sluggish or jerky. At its worst, it was like watc
-
Sirs or madams, Is my Powerbook G4 12" PPC 10.5.8 'bootable' with a Western Digital My Book Studio Desktop 3TB Hard Drive - FW 400/800, USB 2.0, Apple Time Machine Ready external hard drive? Western Digital says officially no, but that it MIGHT be. I
-
AdapterDeviceID: 0x29c2 AdapterVendorID: 0x8086 Add-ons: support%40lastpass.com:3.1.1,%7B16112ED0-B86A-4F27-AB40-FFF5C21B5CE7%7D:1.7.20,donottrackplus%40abine.com:3.2.1127,%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:31.0,troubleshooter%40mozilla.org:1
-
Cerate Logical port for Webservice
HI, I create abap WS in one backend and i want to call him in different backend , i generate proxy via se80 . I want to create logical port but i don't know how. Do i need to create it via SM59 or via LPCONFIG. Please guide me step by step i new to t
-
Upgrade or migrate/ Rejoin separate external library's
Since upgrading to OS 10.9.4 on my iMac I am unable to edit in Aperture 2.1.4, it simply crashes with the message "Aperture quit unexpectedly" one i crop etc. 1/ I gather this is due to the upgrade so am not sure as a next step? Upgrade to next vers