Nesting region to create a dashboard type of page
Hello experts,
I am trying all day to create a page nest that will create the illusion of a dashboard type page. Can any one show me how to do this?
Thank you in advance for your help
Denes,
Would you go over liek a mini class on how to set up regions in apex as you were able to demo in your work. I am strugling to set up a dashboard type column
eg
============= ============= ============ ===========
= = = = = = = =
= = = = = = = =
= = = = = = = =
============= ============= ============ ===========
it can be two rows like this as well
============= ============= ============ ===========
= = = = = = = =
= = = = = = = =
= = = = = = = =
============= ============= ============ ===========
============= ============= ============ ===========
= = = = = = = =
= = = = = = = =
= = = = = = = =
============= ============= ============ ===========
How can I make graph chart, map etc...line up on this regions?
Similar Messages
-
Create a dashboard like a page on Discoverer Desktop / Plus?
Hi,
Is it possible to create a dashboard like a page on Discoverer Desktop / Plus / Viewer. A page (or workbook sheet) with 4 6 graphs and one table?
e.g. below layout (G is my graph and T is table)
G1 | G2
G3 | G4
G5 | T1
ThanksHi
This is not possible in Discoverer Plus, Viewer or Desktop. However, using Portal you can do this by having six different, or releated, Discoverer graphs displayed side by side. You just create six different portlets. Simple as that.
Best wishes
Michael -
How to create multiple Tree Type Region In Tabular Form ?
Dear Friends,
i have to design tabular form to Distribute User Rioght to emp to access application
eg if i have Three module in application
1.Administration
2.Attendance
3.Accounts
Module
1 Administration have 5 Pages A,B,C,D,E.
Module
2 Attendance HAVE 4 Pages F,G,H,I
Module
3 Accounts HAVE 7 Pages J,K,L,M,N,O,P
I need these three module divided into three section in tabular form as a tree Type like
Module 1 Tree Open in Tabular Form like
- (Tree Mark Open )
=======================================================
PAGE_ID-------------SUBPAGE_ID-------VIEW-------------------MODIFY-------------------CREATE----------------------------TABLE COLUMN NAME
========================================================
Administration-----------A------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------B------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------C------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------D------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------E------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
- (Tree Mark Open )
Module 2 Tree Open in Tabular Form like
Attendance-----------F------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------G------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------H------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------I------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
- (Tree Mark Open )
Module 3 Tree Open in Tabular Form like
Accounts-------------J------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------K------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------L------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------M------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------N------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------O------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------P------------------CHECK bOX------------CHECK BOX-------------CHECK BOXi need divided these three Module in Tabular form in three region as tree.
Table APPLICATION_PAGE_DETAILS
ID NUMBER
PAGE_ID NUMBER
SUB_PAGE_ID NUMBER
========================
TABLE USER_RIGHT
======================
ID NUMBER
EMP_ID NUMBER
PAGE_ID NUMBER
SUB_PAGE_ID NUMBER
VIEW VARCHAR2(1)
MODIFY VARCHAR2(1)
CREATE VARCHAR2(1)How to create multiple Tree Type Region In Tabular Form ?
How can i do this ?
Thanks
Edited by: Vedant on Oct 4, 2011 3:21 AM
Edited by: Vedant on Oct 4, 2011 9:09 PM
Edited by: Vedant on Oct 13, 2011 8:57 PMWell think of it I believe the scenario is too bird viewed hence the solution can't be exact.
But thinking of a possible solution every time a child operation fails have a catch block where you you go back to system if the parent needs to be deleted if yes, call Delete Method on the parent.
Note: Make sure that the decision on whether or not the parent record needs to be deleted will depends on the question "Does Parent Record already has several other children associated to it or not"
Hope this clarifies.
Regards,
Messer -
Creating New Dashboard Packages for SAP Business One
Hi Experts,
I am learning how to create my dashboard for Business One on version 9.1PL04.
In this step.
http://businessone91:8080/B1iXcellerator/exec/ipo/vP.001sap0004.in_HCSX/com.sap.b1i.vplatform.runtime/INB_HT_CALL_SYNC_X…
The URL can't returns an XML data sucessfully.So, i try to through IE browser to access this URL.
SAP B1iP detected an error:
Emitted HTTP-Code:
500 - Internal Server Error
Internal Reason:
Server side cannot respond your request (No scenario step (vBIU) assigned for step for sender system (SysId) [0009] [incoming identifier = 'io'])
Recommendation:
Check for the correctness of your activity or environment or ask your system-administrator for further help.
tid
TID: 15031009242239306682A9FEA29322F6
Full Internal Error Message:
com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception:
com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.utilities.UtilException: UTE001 Nested exception: com.sap.engine.lib.xml.util.NestedException: Server side cannot respond your request (No scenario step (vBIU) assigned for step for sender system (SysId) [0009] [incoming identifier = 'io'])
Log-ID:
LID15031009242239306858A9FEA2931BD0
How can i slove this problem?Thanks for your help.Hi David,
I also seek help for the dashboards, no doubt its matter of practise but like we are facing the problems where we have to map our query structure with Excel sheet.
like I'm facing a problem where my Query accepts two parameters in SAP B1.
In Xcelsius I mapped almost everything and these two parameters are accumulated by 2 combo's but when I make a XML data connection and use trigger cell option , it just takes one combo into consideration.
Expected result is : If I change the value in any of the combo then it shud reflect results accrodingly
Actual result : if I change the value of 2nd combo it doesn't reflect the changes until I select the value from first combo again.
Any inputs will be really very much appreciated.
Regards -
DashBoards not loading // Cant create new dashboards
Odd one here guys
On my win7 machine, I Cannot load or create any dashboards on my production system. Any attempt to creates an app crash and event ID 0 in my windows log.
The description for Event ID 0 from source Application cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. : System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more
information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Microsoft.EnterpriseManagement.Presentation.DeclaredAssemblyLoader.LoadModuleCatalogFromAssembly(IModuleCatalog bootstrapperCatalog, ModuleCatalog catalog, Assembly assembly)
at Microsoft.EnterpriseManagement.Presentation.DeclaredAssemblyLoader.CreateModuleCatalog(IEnumerable`1 assemblies)
at Microsoft.EnterpriseManagement.Presentation.DeclaredAssemblyLoader.LoadInternal(IEnumerable`1 assemblies)
at Microsoft.EnterpriseManagement.Presentation.DeclaredAssemblyLoader.Load(DeclaredAssembly assembly)
at Microsoft.EnterpriseManagement.Monitoring.Components.ComponentRegistry.<>c__DisplayClass3e.<GetAssemblies>b__3c(DeclaredAssembly declaredAssembly)
at System.Reactive.Linq.Observable.<>c__DisplayClass413`2.<>c__DisplayClass415.<Select>b__412(TSource x)
the message resource is present but the message is not found in the string/message table
The console dashboard remains blank as per screenshot below. this happens on two seperate management groups on my machine. however, a third seperate environment renders absolutely fine.
However If I use a jumpoff windows 2012 server with the console installed, everything works fine on all three MGs.
I have tried repairing .Net as recommended in this post
http://social.technet.microsoft.com/forums/systemcenter/en-US/e329b91b-cdf0-453e-ad77-900c30ddfc2b/all-scom-dashboard-views-are-blank
And I have also run the VSAE repair tool without fixing the error.
Has anyone else come across this? What could be the cause? I cannot pinpoint a single point of failure as the dashboards render OK via Server 2012 console, and one Management group renders OK from my win 7 machine.
its infuriating!Hi,
Make sure that your Windows 7 has Microsoft .NET Framework 3.5 SP1 hotfix installed.
Please try to remove the console and then reinstall it following the below link:
http://blogs.technet.com/b/ptsblog/archive/2011/11/16/system-center-operations-manager-2012-installation-walkthrough.aspx
Regards,
Yan Li
Regards, Yan Li -
Can I create a dashboard layout on the fly?
Hi all, I am trying to create a dashboard layout "on-the-fly"
(dynamically).
for example: I can create the following layout using MXML
very easily:
[CODE]
<mx:VBox width="100%" height="100%"
horizontalAlign="center">
<mx:Canvas id="dashboardCanvas" width="90%"
height="90%">
<mx:HBox width="100%" height="100%">
<mx:Panel title="panel 1" width="50%" height="100%">
<mx:VBox width="100%" height="100%"
borderStyle="solid">
<myDashboarComp borderStyle="solid" />
<myDashboarComp borderStyle="solid" />
<myDashboarComp borderStyle="solid" />
</mx:VBox>
</mx:Panel>
<mx:Panel title="panel 2" width="50%" height="100%">
<mx:HBox width="100%" height="100%">
<myDashboarComp borderStyle="solid" />
<myDashboarComp borderStyle="solid" />
<myDashboarComp borderStyle="solid" />
</mx:HBox>
</mx:Panel>
</mx:HBox>
</mx:Canvas>
</mx:VBox>
[/CODE]
You can see that I want to build my dashboard up using
HBox's, VBox's, Panels and the individual custom components
(myDashboarComp) - keepinng the layout and structure quite simple.
The above MXML creates a simple Dashboard consisting of the
canvas (where it all starts - it constructed from -
"dashboardCanvas"). the canvas has 2 panels within a HBox (so are
side by side) called "panel 1" and "panel 2". panel 1 contains a
VBox containing 3 components (displayed vertically) and panel 2
contains a HBox containing 3 components (displayed horizontally) -
so very simple.
However - I want to control this layout externally e.g.
passing an object or array (some sort of descriptor) to describe
the layout to my app.
I then want to loop through this descriptor item and build my
dashboard using ActionScript rather than MXML to more control and
flexibility.
this is the object I have created and have been experimenting
with in ActionScript:
[CODE]
[Bindable]
public var descriptorObj:Object =
{item:"dashboard", children: [
{item:"vbox", id:"vbox1", percentWidth:100,
percentHeight:100, children:[
{item:"panel", id:"panel1", percentWidth:50,
percentHeight:100, children:[
{item:"vbox", children: [
{item:"myDashboarComp"},
{item:"myDashboarComp"},
{item:"myDashboarComp"}
{item:"panel", id:"panel2", percentWidth:50,
percentHeight:100, children:[
{item:"hbox", children: [
{item:"myDashboarComp"},
{item:"myDashboarComp"},
{item:"myDashboarComp"}
[/CODE]
This is as far as I got as I kept hitting hurdles from here.
Basically - all I want to do is somehow read / loop through
this object and build my dashboard.
First of all I was unsure of the best way to loop through the
object - as I have to do it in order to get the correct layout...
i.e. the first 3 "myDashboarComp's" are added to the >
VBox that is added to > "panel1" that is added to the > HBox
that is added to the > Canvas.
This is where I ran into my second problem. I managd to loop
through and read the elements checking there "item" in the object
and adding them accordingly.... I could loop though and add each
item to the canvas ok, e.g:
[CODE]
private function initApp():void
for(var i:int=0; i<descriptorObj.children.length; i++)
var itemType:String = descriptorObj.children
.item.toString();
var percentWidth = descriptorObj.children.percentWidth;
var percentHeight = descriptorObj.children
.percentHeight;
addContainer(itemType, percentWidth, percentHeight);
private function addContainer(conType:String, pWidth:int,
pHeight:int):void
if(conType == "panel")
addPanel(pWidth, pHeight);
else if(conType == "vbox")
addVBox(pWidth, pHeight);
private var newPanel:Panel;
private function addPanel(pWidth:int, ptHeight:int):void
newPanel = new Panel();
newPanel.percentWidth = percentWidth;
newPanel.percentHeight = percentHeight;
newPanel.title = "test panel";
dashboardCanvas.addChild(newPanel);
[/CODE]
in the above actionScript the canvas "dashboardCanvas" is
already set up in the MXML (but is the only MXML container added as
the rest should be built using the create object "descriptorObj" in
AS).
This is my next problem - when I have added a container,
e.g. a panel the next items e.g. my "myDashboarComp's" should then
be added to the previously added panel and not to the canvas
anymore - I need some way of telling the app to add children to the
last added container and not to the canvas (and each container can
change type from a panel to VBox to HBox etc....)
I hope what I am trying to say makes sense, and any help on
this one would be greatly appreciated.
I just need pointing in the right direction and some ideas on
how to continue would be good - and if my thinking / method / ideas
are actually possible.
Kind Regards,
Jon.There are several ways to do this. The third chapter in the
cookbook is a good place to start.
All things in ActionScript are based on objects. Constructing
them with the data needed for the ui information you will need and
then binding that data to your dashboard objects is basically what
you are going to be doing.
For me it makes the most sence to have an idea of what
different types of objects you will be creating and create some
extended components for those objects. Then when you recieve your
data, binary or xml, you can digest the configuration settings from
the layout and populate the constructor for each of your
components.
It sounds like you need to organize your layout structure in
a heirarchy and from that you can walk each branch and create each
set of things as you parse your data.
Without a bit more information as to what you are
specifically doing that is about as far as I can go minus adding in
some code along some line that I think might work.
Hope that helps some.
-D -
Can I create a Dashboard in CRM OD that Displays The Periodic Revenues?
Hi,
I would just like to ask how to create a Dashboard Report that displays Sales Revenues on a Monthly Basis?
Currently, our company is displaying revenues on a per quarter or per fiscal year basis. However, the sales people wants to fine tune the display into monthly basis.
What triggers should I activate in order to display the revenues as per the desired report?
Appreciate your inputs. Thanks.
- TonyThere are several ways to do this. The third chapter in the
cookbook is a good place to start.
All things in ActionScript are based on objects. Constructing
them with the data needed for the ui information you will need and
then binding that data to your dashboard objects is basically what
you are going to be doing.
For me it makes the most sence to have an idea of what
different types of objects you will be creating and create some
extended components for those objects. Then when you recieve your
data, binary or xml, you can digest the configuration settings from
the layout and populate the constructor for each of your
components.
It sounds like you need to organize your layout structure in
a heirarchy and from that you can walk each branch and create each
set of things as you parse your data.
Without a bit more information as to what you are
specifically doing that is about as far as I can go minus adding in
some code along some line that I think might work.
Hope that helps some.
-D -
OCI doc says Cursor and Nested table have the same bind type SQLT_RSET but they don't
5 Binding and Defining in OCI
PL/SQL REF CURSORs and Nested Tables in OCI
says SQLT_RSET is passed for the dty parameter.
If I use SQLT_RSET for the return value of a function that returns a table and pass a statement handle's address for the OCI parameter data pointer, I expected that the statement handle will be instantiated as a result of executing the function on which I can further perform fetch, similar to a cursor. But it throws exception PLS-00382: expression is of wrong type ORA-06550: line 2, column 3. Is the above documentation wrong?
From the OCI header file I see that for varray and nested table it mentions to use SQLT_NCO. I could find no example in the OCI documentation on how to pass or receive as return value a nested value when using SQLT_NCO.
Please help before I shoot myself.So the Nested table I quoted in the doc is not actually used to mean a table type below?
create type t_resultsetdata as object (
i int, d decimal, c varchar(10)
create type t_nested_resultsetdata as table of t_resultsetdata;
create function Blah return t_nested_resultsetdata is . . .
For this you are saying to use SQL_NTY and not SQL_NCO. Can you tell where this usage is documented, because ocidfn.h says
#define SQLT_NTY 108
/* named object type */
#define SQLT_NCO 122
/* named collection type (varray or nested table) */
Another question - Because of the original document I said I followed, I thought I could treat cursor and nested table similarly in the calling application, i.e. I could repeatedly do a fetch on the OCIStmt* which will be bound for nested table. Now from what you say I understand I can't really bind a OCIStmt* for nested table but have an object type. That means it will get all the data of that collection in one go, right? LIke I said, lack of examples is making this tough. I don't want to look into OCI source code, as that will be too much. -
Create view on type??
Hi all,
Yesterday, I hit the bug:
DataPump Export (expdp) Returns ORA-1427 When Partitioned IOT With Same Name Exists in More Than One Schema [ID 1064840.1]
One of the resolutions for this is to re-create ku$_iotpart_data_view view with the following code:
create or replace force view ku$_iotpart_data_view of ku$_table_data_t with object OID(obj_num) as
select '1','2',
ip.obj#,
(select o1.obj#
from obj$ o1
where o1.name=bo.name
and o1.subname=o.subname
and o1.owner#=o.owner_num),
o.subname,
NULL,
po.parttype,
t.property,
t.trigflag,
dbms_metadata_util.get_xmltype_fmts(t.obj#),
decode ((select 1
from dual
where (exists (select q.obj#
from sys.opqtype$ q
where q.obj#=t.obj#
and q.type=1 /* xmltype col */
and bitand(q.flags,2+64)!=0))), /* CSX or SB */
1,'Y','N'),
decode ((select count(*) /* outofline xml table */
from sys.opqtype$ q
where q.obj# = t.obj# and
bitand(q.flags, 32) = 32 ),
1,'Y','N'),
'N', /* partitioned table cannot have column with LONG datatype */
decode ((select count(*)
from sys.type$ ty, sys.coltype$ ct
where ty.toid=ct.toid and ty.version#=ct.version#
and ct.obj#=t.obj#
/* 0x00008000 = 32768 = contains varray attribute */
/* 0x00100000 = 1048576 = has embedded non final type */
and bitand(ty.properties,1081344)=1081344),
0,'N','Y'),
decode ((select count(*)
from sys.refcon$ rf, sys.col$ c
where c.obj#=rf.obj# and c.intcol#=rf.intcol#
and c.obj#=t.obj#
and bitand(rf.reftyp,1)=0), /* ref is non-scoped */
0,'N','Y'),
'N', /* default 'has_tstz_cols' to 'N' */
value(o),
ts.name, ts.blocksize, b.bytes_alloc,
value(bo),
-- if this is a secondary table, get domidx obj and ancestor obj
decode (bitand (bo.flags, 16), 16,
(select value(oo)
from ku$_schemaobj_view oo, secobj$ s
where bo.obj_num=s.secobj#
and oo.obj_num=s.obj#
and rownum < 2),
null),
decode (bitand (bo.flags, 16), 16,
(select value(oo)
from ku$_schemaobj_view oo, ind$ i, secobj$ s
where bo.obj_num=s.secobj#
and i.obj#=s.obj#
and oo.obj_num=i.bo#
and rownum < 2),
null),
um.unload_method,
um.et_parallel,
(select count(*)
from rls$ r
where r.obj#=t.obj# and r.enable_flag=1 and bitand(r.stmt_type,1)=1),
0 -- note: piot cannot be ref partitioned
from ku$_iotpart_bytes_alloc_view b,
ku$_schemaobj_view o, ku$_schemaobjnum_view bo,
ku$_unload_method_view um, tab$ t,
ind$ i, indpart$ ip, ts$ ts, partobj$ po
where ip.obj# = o.obj_num
AND o.type_num = 20 -- index partition
AND bo.obj_num = po.obj#
AND ip.bo#=i.obj#
AND i.type#=4 -- iot index
AND i.bo#=t.obj#
AND t.obj# = um.obj_num
AND ip.ts# = ts.ts#
AND b.obj_num=ip.obj#
AND bo.obj_num=i.bo#
AND (bitand (bo.flags,16)!=16
OR sys.dbms_metadata.oktoexp_2ndary_table(bo.obj_num)=1)
AND (SYS_CONTEXT ('USERENV','CURRENT_USERID') IN (o.owner_num, 0) OR
EXISTS (SELECT *
FROM sys.session_roles
WHERE role='SELECT_CATALOG_ROLE'))
/I did that as sys and created in INVALID state. When i do show errors, I get "table or view does not exist".. and indeed, if i search the object on what this view is being created, i get the following:
sys@devbase> select object_name, object_type, status
2 from dba_objects where object_name like '%TABLE_DATA_T%';
OBJECT_NAME OBJECT_TYPE STATUS
KU$_TABLE_DATA_T TYPE VALID
This is an Oracle Type. I am not sure if we can create views on types... And even if can, why am I getting ORA-00942 if i am connected as sys???
Did anybody hit this problem? Can you please help to compile this thing?
Thanks a lot in advance!!!
M
Edited by: MarGur on Feb 11, 2011 10:10 AM
Edited by: MarGur on Feb 11, 2011 10:14 AMThanks for formatting the original post. It now makes a lot more sense.
Still worth opening a SR even though it's non-critical. Nothing wrong with asking both places - especially since you know that it'll take days before they get to it, so why wait those days AFTER you give up here <g>
As to your question whether views can be created on types, reference the SQL Language Reference manual at http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_8004.htm#i2065510 where it states
Use the CREATE VIEW statement to define a view, which is a logical table based on one or more tables or views. A view contains no data itself. The tables upon which a view is based are called base tables.
You can also create an object view or a relational view that supports LOBs, object types, REF data types, nested table, or varray types on top of the existing view mechanism. An object view is a view of a user-defined type, where each row contains objects, each object with a unique object identifier.
I would encourage you to post the actual error message from the compile. -
Ok, here's my objective. I have a list of first and last
names running vertically (a new name on each line). I want to nest
repeaters to repeat information, that's nested in the xml on a per
row basis. When a user clicks on a row, it expands to show more
about that user.
My xml looks like this:
<people>
<person firstname="bob" lastname="jones">
<phonenumbers>
<phonenumber type="home" value="8005551212" />
<phonenumber type="home" value="8007774545" />
</phonenumbers>
</person>
<person firstname="jane" lastname="smith">
<phonenumbers>
<phonenumber type="home" value="9003338986" />
<phonenumber type="home" value="8008884561" />
</phonenumbers>
</person>
</people>
<script>
var dsData = GetPersonData();
var dsPhones = null; // This needs to be set on a per
user-click basis?
</script>
<div spry:region="dsData"
style="height:100px;overflow:auto;">
<div spry:repeat="dsData" class="contact"
id="{dsData::ds_RowID}">
<a class="selectcontact" href="javascript: void(0);"
onclick="selectContact(this);">{dsData::@lastname}</a>
<div spry:detailregion="dsPhones">
Here are this uses phone numbers:
<a spry:repeat="dsPhones"
href="javascript:void(0);">{dsContact::@value}</a>
</div>
</div>
</div>
Is this possible with Spry? Nesting repeaters?
Thanks for any insight you can provide!
-joshHi Josh,
Unfortunately Spry has problems doing exactly what you are
trying to do. The reason is that our data set flattening code only
flattens a single level of repeating nodes.
We're working on a solution for solving this problem.
That said, the only way to handle this type of situation
currently is with a master/detail pattern where clicking on a name
updates a region *outside* of the region containing your list of
names.
By the way, nesting regions isn't supported.
--== Kin ==-- -
Error while creating a custom type
i'am having the following statement,
create or replace type myType as object ( x varchar2(20) not null )
when i try to create, i get the following error,
PLS-00218: a variable declared NOT NULL must have an initialization assignment
now how do i create an object whose value(S) should be not null...???...............my_type.id here is nonsense. It's NOT a type at all.
OUT and IN OUT parameters can't be assigned with DEFAULT value:
SQL> create procedure wrong_params(id in out number default 0)
2 is
3 begin
4 null;
5 end;
6 /
Warning: Procedure created with compilation errors.
SQL> show error
Errors for PROCEDURE WRONG_PARAMS:
LINE/COL ERROR
1/24 PLS-00230: OUT and IN OUT formal parameters may not have default
expressionsIf you declare variable as NOT NULL you have to assign default value to prevent
PL/SQL compiler confusion:
SQL> declare
2 id number not null;
3 begin
4 null;
5 end;
6 /
id number not null;
ERROR at line 2:
ORA-06550: line 2, column 5:
PLS-00218: a variable declared NOT NULL must have an initialization assignment
SQL> declare
2 id number not null default 10;
3 begin
4 null;
5 end;
6 /
PL/SQL procedure successfully completed.
I read out parameters cannot be of type not nullFormal arguments of procedures/functions can not be declared as NOT NULL
anyway they are OUT or IN.
But actual parameters (variables you are passing into procedures) can be declared
as not null. Because of this this call cause the error - procedure passes null value ( [i]default value for OUT formal argument ) out to actual parameter which is not null:
SQL> create or replace procedure my_proc
2 (formal_argument out number)
3 is
4 begin
5 null;
6 end;
7 /
Procedure created.
SQL> declare
2 actual_argument number not null := 0;
3 begin
4 my_proc(actual_argument);
5 end;
6 /
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 4See Tom Kyte's threads for more explanations:
http://asktom.oracle.com/pls/ask/f?p=4950:8:12505620454267529210::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:325417134618
Rgds. -
How to allow create different transaction type for different customer
We are using CRM 7.0 now. We have two types customer, one is sap customer, the other is potential customer. We want to distinguish the two types customer. And user can create all transaction (for example: quotation, opportunity, activity) the sap customer. And the user only can create activity for the potential customer, they can't create others transaction type for potential customer. How can we realize it? Thanks.
Hi,
We can make use of the BLOCKING REASONS to realize your requirement.
A Blocking Reason can be assigned to the Business Partner role dependent data and to the transaction type. A Business partner can be used in a transaction only if he is not assigned to this blocking reason.
For Ex, In your scenario you can create a Blocking reason 'Not a SAP Customer ' and assign it to all the Potential Customers. You should assign the blocking reason to all the transaction types which the potential customers should not be allowed.
Hope it helps. Please let me know if you need further help.
Regards,
Vamsi.
Edited by: Vamsi Krishna Potta on Sep 7, 2010 9:41 AM -
Options for ABAP report output in Dashboard type presentation
Background
Monash University environment is SAP ERP ECC6 - no BW. The University has undertaken considerable analysis of spend as part of developing a strategic approach to procurement. The data used to undertake this analysis was extracted from SAP MM and FI using a developed ABAP report which collates, categorizes and consolidates all spend information from MM (for our Purchase Order based commitment and expenditure) and FI (for direct invoices and Corporate Credit Card expenditure). This information is then currently exported to MS-Excel to produce a report containing graphs, pie charts etc.
Requirement
To present output from our Spend Analysis Report in a more readable dashboard type presentation. This facility should allow easy manipulation (slice and dice) and drill down of the data.. Our requirement is to have something operating within a very short time-frame, say within a month or two. Although you might suggest Web Dynpro Business Graphic or SEM /BW (as the optimal solution) we understand the set up time for either of these solutions is prohibitive. Visual Composer has been suggested as another option but we have no in-house expertise to determine if this is a viable solution.
Some colleagues visited a conference a couple of weeks ago and saw a demonstration of a product call XenoCube http://www.inlogik.com/downloads/XenoCube_Brochure.pdf
which was proposed as a quick way to present SAP 'raw' report output in a more readable form. Other solutions in this space that have been suggested include:-
Zycus - Actionable Spend Analysis Zycus.com
Emptoris Spend Analysis - emptoris.com
ONIQUA Enterprise Analytics oniqua.com.au
Ariba Buyer ariba.com
SAS Spend Analysis sas.com
Etesius SpendGuardian etesius.com
Can anyone provide advice as to their experience of SAP solution, integrated partner products or any of the about products to satisfy a similar requirement to that which I have outlined? The main selection criteria will include a product which is:
a) quick & easy to implement,
b) presentation and manipulation of ABAP extracted data
c) is scalable and
d) is reasonably priced.
Grateful for any advice regarding a solution .
Thank-youHi,
This development writes to mapped network drive in Unix. The concept will be similar.
[http://wiki.sdn.sap.com/wiki/display/SCM/APOtoMappedNetworkDrive]
cheers
Aveek -
How to create a line type in data dictionary
How to create a line type in data dictionary?Please explain step by step?
Thanks & Regads,
SairamHi,
the details abbout the line type.
The line type of a table type can be defined by:
o Specification of a type that already exists (data element,
structure, table type, table, view) whose properties are then copie
as properties of the defined table line.
o Direct type input, where data type, number of positions, and, if
required, decimal places, are entered directly.
o Specification of a reference type.
and SE11 and click on datatype and click on table type and enter the line type.
Thanks
Shiva -
Trying to create a Histogram type/object for aggregate functions
Hi,
I am trying to create an aggregate function that will return a histogram
type.
It doesn't have to be an object that is returned, I don't mind returning
a string but I would like to keep the associative array (or something
else indexed by varchar2) as a static variable between iterations.
I started out with the SecondMax example in
http://www.csis.gvsu.edu/GeneralInfo/Oracle/appdev.920/a96595/dci11agg.htm#1004821
But even seems that even a simpler aggregate function like one strCat
below (which works) has problems because I get multiple permutations for
every combination. The natural way to solve this would be to create an
associative array as a static variable as part of the Histogram (see
code below). However, apparently Oracle refuses to accept associate
arrays in this context (PLS-00355 use of pl/sql table not allowed in
this context).
If there is no easy way to do the histogram quickly can we at least get
something like strCat to work in a specific order with a "partition by
... order by clause"? It seems that even with "PARALLEL_ENABLE"
commented out strCat still calls merge for function calls like:
select hr,qtr, count(tzrwy) rwys,
noam.strCat(cnt) rwycnt,
noam.strCat(tzrwy) config,
sum(cnt) cnt, min(minscore) minscore, max(maxscore) maxscore from
ordrwys group by hr,qtr
Not only does this create duplicate entries in the query result like
"A,B,C" and "A,C,B" it seems that the order in rwycnt and config are not
always the same so a user can not match the results based on their
order.
The difference between my functions and functions like sum and the
secondMax demonstrated in the documentation is that secondMax does not
care about the order in which it gets its arguments and does not need to
maintain an ordered set in order to return the correct results. A good
example of a built in oracle function that does care about all its
arguments and probably has to maintain a similar data structure to the
one I want is the PERCTILE_DISC function. If you can find the code for
that function (or something like it) and forward a reference to me that
in itself would be very helpful.
Thanks,
K.Dingle
CREATE OR REPLACE type Histogram as object
-- TYPE Hist10 IS TABLE OF pls_integer INDEX BY varchar2(10),
-- retval hist10;
-- retval number,
retval noam.const.hist10,
static function ODCIAggregateInitialize (sctx IN OUT Histogram)
return number,
member function ODCIAggregateIterate (self IN OUT Histogram,
value IN varchar2) return number,
member function ODCIAggregateTerminate (self IN Histogram,
returnValue OUT varchar2,
flags IN number) return number,
member function ODCIAggregateMerge (self IN OUT Histogram,
ctx2 IN Histogram) return number
CREATE OR REPLACE type body Histogram is
static function ODCIAggregateInitialize(sctx IN OUT Histogram) return
number is
begin
sctx := const.Hist10();
return ODCIConst.Success;
end;
member function ODCIAggregateIterate(self IN OUT Histogram, value IN
varchar2)
return number is
begin
if self.retval.exist(value)
then self.retval(value):=self.retval(value)+1;
else self.retval(value):=1;
end if;
return ODCIConst.Success;
end;
member function ODCIAggregateTerminate(self IN Histogram,
returnValue OUT varchar2,
flags IN number)
return number is
begin
returnValue := self.retval;
return ODCIConst.Success;
end;
member function ODCIAggregateMerge(self IN OUT Histogram,
ctx2 IN Histogram) return number is
begin
i := ctx2.FIRST; -- get subscript of first element
WHILE i IS NOT NULL LOOP
if self.retval.exist(ctx2(i))
then self.retval(i):=self.retval(i)+ctx2.retval(i);
else self.retval(value):=ctx2.retval(i);
end if;
i := ctx2.NEXT(i); -- get subscript of next element
END LOOP;
return ODCIConst.Success;
end;
end;
CREATE OR REPLACE type stringCat as object
retval varchar2(16383), -- concat of all value to now varchar2, --
highest value seen so far
static function ODCIAggregateInitialize (sctx IN OUT stringCat)
return number,
member function ODCIAggregateIterate (self IN OUT stringCat,
value IN varchar2) return number,
member function ODCIAggregateTerminate (self IN stringCat,
returnValue OUT varchar2,
flags IN number) return number,
member function ODCIAggregateMerge (self IN OUT stringCat,
ctx2 IN stringCat) return number
CREATE OR REPLACE type body stringCat is
static function ODCIAggregateInitialize(sctx IN OUT stringCat) return
number is
begin
sctx := stringCat('');
return ODCIConst.Success;
end;
member function ODCIAggregateIterate(self IN OUT stringCat, value IN
varchar2)
return number is
begin
if self.retval is null
then self.retval:=value;
else self.retval:=self.retval || ',' || value;
end if;
return ODCIConst.Success;
end;
member function ODCIAggregateTerminate(self IN stringCat,
returnValue OUT varchar2,
flags IN number)
return number is
begin
returnValue := self.retval;
return ODCIConst.Success;
end;
member function ODCIAggregateMerge(self IN OUT stringCat,
ctx2 IN stringCat) return number is
begin
self.retval := self.retval || ctx2.retval;
return ODCIConst.Success;
end;
end;
CREATE OR REPLACE FUNCTION StrCat (input varchar2) RETURN varchar2
-- PARALLEL_ENABLE
AGGREGATE USING StringCat;GraphicsConfiguration is an abstract class. You would need to subclass it. From the line of code you posted, it seems like you are going about things the wrong way. What are you trying to accomplish? Shouldn't this question be posted in the Swing or AWT forum?
Maybe you are looking for
-
Adobe Creative Cloud does not register all of my Adobe programs.
Adobe Creative Cloud properly shows my Adobe Photoshop CS6 as registered. However, it does not show my Adobe Acrobat XI Pro, or my Adobe Photoshop Lightroom 4.4 as registered. How can I get these programs to be properly registerd as "MY APPS" in Ad
-
Creating multiple views in SQL Server 2008 database through sqlcmd
I've written a script that generates a ddl file. The ddl file contains all the table creation, view creation and stored proc creation SQL statements for refreshing my database. The ddl file gets run by sqlcmd. From reading other forum posts, it seems
-
Can't start managed server - Authentication for user denied
Greetings, I have a WebLogic 10.3.6 based domain. The admin server works correctly. Using the admin console, I created a managed server. It is not associated to any machine and I don't use node manager. The managed server listens on localhost:7101 wh
-
List of billing that has not been cancelled
Is there a transaction or a way in SAP to show all the invoice that has not been cancelled? for example, a list of all the invoice of one customer that has not been cancelled. Showing only invoice with no reference of S1 cancellation invoice.
-
Batch convert files to 4x6 with copyright?
How do you batch convert files to 4x6 with copyright?