Create and fill combobox at runtime
Hi,
I can now create a combobox, as a child of a gridpanel, at runtime:
HtmlSelectOneMenu combobox2 = new HtmlSelectOneMenu();
combobox2.setId("dropdownProject");
gridPanel1.getChildren().add(combobox2);
Can someone help me out with how to set the items in the combobox, at runtime?
From my previous OO-experience I thought I could create a model (DefaultSelectItemsArray?) and attach that to the viewer (the combobox) but I can't find any way of doing that.
I must say that I'm a java beginner so that may be part of the problem ;-)
Thanks already,
Bart.
Hi again,
It took me 4 hours but I got it to work myself.
For the archive, here's the code:
ArrayList dropdown1Options = new ArrayList();
dropdown1Options.add(new SelectItem("Choice 1","My First Project"));
dropdown1Options.add(new SelectItem("Choice 2","My Second Project"));
dropdown1Options.add(new SelectItem("Choice 3","My Third Project"));
UISelectItems dropdown1SelectItems = new UISelectItems();
dropdown1SelectItems.setValue(dropdown1Options);
HtmlSelectOneMenu dropdown1 = new HtmlSelectOneMenu();
dropdown1.setId("dropdownProject");
dropdown1.getChildren().add(dropdown1SelectItems);
gridPanel1.getChildren().add(dropdown1);
The link I missed was the one between the HtmlSelectOneMenu and the UISelectItems.
Appearantly you bind them using the getChildren().add() method. (?)
I'm gonna give myself the duke dollars! :-)
Cheers,
Bart.
Similar Messages
-
Creating and filling JTables dynamically
Hello,
How can I create and display a JTable dynamically in a Java application? In my application, I retrieve rows from a database and therefore I don't know in advance how many rows I need for my JTable (using the tablemodel). I tried to solve the problem in the following way:
1)start op applicatie with a JTable with 0 rows (screen is grey, only columns are visible)
2)run query and count number of rows.
3)create new JTable based on number retrieved in step 2 and tried to put it onto the screen.
4)run query again and fill table with values retrieved from query
The bottleneck so far is step 3. I can create a new table but I don't manage to put it onto the screen (i tried already the repaint() method)
Thanx for you help
FritsSure, no problem. Assume you've retrieved the following result from the database:First Name Last Name Age
John Doe 25
Jane Doe 27
Joe Smith 40
Mary Smith 19You create your JTable as like this:Vector headings = new Vector();
Vector rows = new Vector();
Vector cells = null;
JTable table = null;
for(int x=0; x< resultSize; x++){//resultSize is the size of your result
cells = new Vector(); //Cells together will represent a row
cells.add(yourResult.getTheFirstColumnForRowX()); //Pseudo-code
cells.add(yourResult.getTheSecondColumnForRowX()); //Pseudo-code
cells.add(yourResult.getTheThirdColumnForRowX()); //Pseudo-code
//Now place those cells into the rows vector
rows.add(cells);
//Create the JTable
table = new JTable(rows, headings);This code is not tested and is meant to give you an idea of how the concept can be applied. Hope it helps. -
Desktop office integration : Creating and filling tables in a word document
Hi all,
I want to create a table in a word document and then fill it with data. The word processor interface has only 'insert_table' methods which can download the data in an ABAP internal table to an already
existing table in a word document, but in my case I also want to create the word table, titles etc. in the word document. Has someone experience with such kind of a requirement or have someone an example for it?
Kind Regards,
SükrüHi,
May this one will help you.
CREATE OBJECT wordapp 'Word.Application'.
CALL METHOD OF wordapp 'Documents' = documents.
CALL METHOD OF documents 'Add' = thisdoc.
CALL METHOD OF thisdoc 'Activate'.
GET PROPERTY OF wordapp 'Selection' = selection.
SET PROPERTY OF wordapp 'Visible' = 1.
CALL METHOD OF selection 'TypeParagraph'.
CALL METHOD OF selection 'TypeText'
EXPORTING #1 = 'New Document'.
GET PROPERTY OF wordapp 'Tables' = tables.
CALL METHOD OF tables 'Add' = thistable.
SET PROPERTY OF thistable 'NumRows' = 2.
SET PROPERTY OF thistable 'NumColumns' = 2.
or you can check
CALL METHOD OF wordobj 'TABLEINSERTTABLE'
EXPORTING
#01 = 2
#02 = 3.
aRs -
Create and Fill Out Forms on iPad?
I have recently started a small business, but people must fill out a short form to recieve the item. I sometimes am away from the business when the form is needed to be filled out. I would like to save on ink and paper. So are there any apps for the iPad in which I can create a form and have people be able to fill it out and sign it right there on the iPad? I have downloaded many apps and signed up for many things, but either I can't work them orthe form must be e-mailed to the person. I need an app where I can have people fill it out and sign it right on the spot.
Hi There
We have a solution called iForm Pro (www.iformpro.co.uk) that would allow you to automate your forms and capture signatures, take photos and write on them and even calculate invoice values etc.
Hope this helps
Santy72 -
I am working on a machine where the client complained that the drive kept filling up. Upon checking I realised that over 750GB was occupied with CBS logs. These logs are usually generated when SFC.exe (System File Checker) executes. However, they are being
created an average of 3 times a week and no one onsite is running SFC. The logs go back to 2012 so it appears that somehow SFC is autorunning..
I could not locate a scheduled task for it in Task Scheduler.
Is there a wasy to confirm that there is no schedule task other than again going through every single element.
Any ideas as to why it is happening and how to stop it will be greatly appreciated.
The machine is running Windows 7 Home Premium.Hi,
Are we in a domain environment?
Did this issue occur on a special machine or with all the clients in the domain?
CBS is Component-Based Servicing, and CBS.log logged the information for CBS events. More information regarding CBS, please take a look at:
Understanding Component Based Servicing.
Could you please have a share with the recent log file before going further? There might be some issue keep logging in the log file. Upload it to skydrive if possible and post us the link here.
Best regards
Michael Shao
TechNet Community Support -
Navigation and Creating a navigation rule at runtime
Hi all,
How can I create a navigation rule at runtime?
I got all my pages (names and locations) stored in a database table.All my pages are jspx format.
I don't want to create navigation rules for each page, Instead I want to use the location stored in the database and create a navigation rule to navigate to.
I tried navigating using ServletRequest :
ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
HttpServletRequest request = (HttpServletRequest)ectx.getRequest();
request.getRequestDispatcher("/faces/Titles.jspx").forward(request,response);But it blows after the first call.
is it possible to create a navigation rule in a Bean or is there another way to call jspx pages from a Bean without loosing the session.
Can someone help me please.
thanks in advance,
Ahmad EsbitaAhmad,
I don't know of any way to programatically create navigation cases at runtime. However, perhaps you could try creating a NavigationHandler decorator. Let's assume you have a function called "getViewIDforAction" that does the database lookup and returns the view ID for a given action code. You could do something like this:
package my.code;
import javax.faces.application.NavigationHandler;
import javax.faces.context.FacesContext;
public class MyNavigationManager extends NavigationHandler
NavigationHandler _base;
public NavigationManager (NavigationHandler base)
super();
_base = base;
public void handleNavigation(FacesContext fc, String actionMethod, String actionName)
String viewID = getViewIDforAction(actionName);
if (viewID != null && ! "".equals(viewID))
fc.getViewRoot().setViewId(viewID);
else
_base.handleNavigation(fc, actionMethod, actionName);
}You'll also need this in faces-config.xml:
<application>
<navigation-handler>my.code.MyNavigationManager</navigation-handler>
...any other stuff...
</application>Note: I haven't tested this or anything - just to give you an idea...
Regards,
john -
Actobat X Pro - Creating a fill-in form and i want it to email back to me
I have created a fill-in form in Adobe X Pro (Trial version) and would like to set up a 'Submit' button that once all info is filled out, the customer can then press and this emails the PDF back to me.
How do i do this? I am sure there are other threads already going about this but i cant understand a word in any of them. So please if you reply it needs to be as simple as possible.
Please help
- AlexBill,
Thank you for your help.
The reason i have gone for the trial version is that I am part of a big company that would probably not authorise me to purchase the full product or even if they did, it would take months for it to get loaded onto my computer etc. This is why i have chosen to try this through the trial version.
I will try again with what you've suggested below. I had a play around with it last night and the FDF file works, although i would rather the PDF. I will see what i come up with.
Thanks. -
I currently have a requirement to create a time channel in the data portal and subsequently fill it with data. I've shown below how I am currently doing it:
Time_Ch = ChnAlloc("Time channel", 271214 , 1 , , "Time" ,1 ,1) 'Allocate time channel
For intLoop = 1 to 271214
ChD(intLoop,Time_Ch(0)) = CurrDateTimeReal 'Create time value
Next
I understand that the function to create and allocate memory for the time channel is extremely quick. However the time to store data in the channel afterwards is going to be highly dependent on the length I have assigned to the Time_Ch. In my application the length of Time_Ch is variable but could easily be in the order of 271214 or higher. Under such circumstances the time taken to fill Time_Ch is quite considerable. I am wondering whether this is the most appropriate way of doing things or whether there is a more efficient way of creating a time channel and filling it.
Thanks very much for any help.
Regards
MatthewHi Matthew,
You are correct that there is a more efficient way to do this. I'm a little confused about your "CurrDateTimeReal" assignment-- is this a constant? Most people want a Time channel that counts up linearly in seconds or fractions of a second over the duration of the measurement. But that looks like you would assign the same time value to all the rows of the new Time channel.
If you want to create a "normal" Time channel that increases at a constant rate, you can use the ChnGenTime() function:
ReturnValue = ChnGenTime(TimeChannel, GenTimeUnit, GenTimeXBeg, GenTimeXEnd, GenTimeStep, GenTimeMode, GenTimeNo)
If you really do want a Time channel filled with all the same values, you can use the ChnLinGen() function and simply set the GenXBegin and GenXEnd parameters to be the same value:
ReturnValue = ChnLinGen(TimeChannel, GenXBegin, GenXEnd, XNo, [GenXUnitPreset])
In both cases you can use the Time channel you've already created (which as you say executes quickly) and point the output of these functions to that Time channel by using the Group/Channel syntax of the Time channel you created for the first TimeChannel parameter in either of the above functions.
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
If I want to fill out estimates and have created a fill and sign form;
If I want to fill out estimates and have created a fill and sign form; do I have to access formscentral everytime or is there a way to save the fill and sign form that is readable on my tablet?
The clouds you see next to your music on the device and iCloud are two different things. When your music is not on your device it is in iTunes in the Cloud. Not the same thing as iCloud which is used to sync information between devices and house backups of your device contents. So that little cloud you see next to your songs is telling you that the music is not on your device. That's why it is giving you the message - because when you click on it, it is attempting to download it to your device.
What may have happened is when you imported your photos to the PC, you may have sync'd your device via iTunes, and you did not have the Sync Music option checked in your device Profile screen.
Hook up your device to your PC and open iTunes. Make sure the sidebar is showing (Control+S if you cannot see the sidebar with Devices listed), and click on your device to open the Device Profile screens to the right. Click on the Music tab, and make sure that the Sync All Music or Sync Selected Music box is checked. If you have Sync Selected Music checked, then below that, make sure you check all music that you want on your device. Then click on SYNC at the bottom (or APPLY).
Once you have successfully sync'd your music to your device, you will no longer see the cloud next to the songs, and you also will no longer get a message since you will have the songs physically on your device and not in iTunes in the Cloud.
Cheers,
GB -
Creating dynamic sized arrays and filling them automatically on speedy 33
hi all,
I am trying to create dynamic sized arrays on Speedy-33. Specifically, depending on the user input, I want to be able to create
arrays with 128 or 256 elements and fill them automatically. However,
array constant element is fixed for Speedy 33; thus I have to manually set the
size of the array with the mouse and enter the values in to the array by
myself. I want to make this tedious process automatic. Would this be possible? thanks so much for comments!
~casiopeaCasiopea,
There is a really great article on using arrays with LabVIEW DSC which can be found here:
How Can I Be Successful With Arrays In the LabVIEW DSP Module?
One of the biggest things that should be noted about DSP is that there is no dynamic memory allocation. Your array size must be fixed, and thus, your array needs to be initialized by using a constant.
An easy way to initialize an array constant that has many elements that are all the same is to simply create a numeric constant that has the value that you want. Then, create a new blank array constant and drag the numeric into it. In the index input for the array constant, type in the index of the last element that you want to be initialized. Then type in the value in the element that is displayed and all of the elements before it will be initialized to the default value of the numeric constant that you dropped into the array constant. I hope this helps. I would really recommend reading through that article, as it has a lot of great information about using arrays with DSC.
Brian Coalson
Software Engineer
National Instruments -
Hi,
I am creating a batch job in C# and my requirement is as follows.
My Requirement is to create multiple document libraries and after breaking inheritance I remove all the groups which that library inherits and add some groups which are created for that library.Initially when libraries are less the creation
of library is good but once it gets increased ,system takes lot of time.I will have to create around 2000 libraries and almost 600-700 groups.
Q.1 ) What would be my approach?
Q.2) Do we have powershell command which can break inheritance and delete all the default groups in a one go (without looping) of a library?
Please suggests.Hi,
It is recommended to create timer job for the time consuming job when in SharePoint environment.
About creating timer job:
http://www.codeproject.com/Tips/634208/Create-and-Deploy-Custom-Timer-Job-Definition-in-S
If you want to do it via PowerShell, the links below would be helpful.
About how to stop inheriting permission for SharePoint list and give custom permission using PowerShell:
http://www.sharepointlovers.com/sharepoint-powershell-command-to-stop-inheriting-permission-for-sharepoint-list-and-give-custom-permission/
About How to remove users and groups from a SharePoint list using PowerShell:
https://sharepointthinking.wordpress.com/2012/10/01/how-to-remove-users-and-groups-from-a-sharepoint-list-using-powershell/
Thanks
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Creating Forte FieldWidgets Dynamically at Runtime
Hi Everyone,
Could someone please help me with the following problem I have when
creating Forte fieldwidgets dynamically at run-time. I am using Forte
ver. 3.0.G.2.
(-1-) I have a window class with an empty gridfield, <grfMain>, inside a
viewport. The idea is to populate the gridfield with DataField
fieldwidgets dynamically at runtime. Depending on some input criteria,
sometimes some of the DataFields need to map to IntegerNullables, some
to DoubleNullables and some to DateTimeNullables. (Please note that I
cannot use the Forte window workshop to create these fieldwidgets,
because different types of fieldwidgets will be needed at different
times, in different numbers, at run-time. ) Here is a sample of how I am
currently trying to achieve this:
dfDate : DataField = new;
dfDate.MaskType = MK_Template;
dfDate.DateTemplate = new( value='dd/mm/yyyy' );
dfDate.Row = 1;
dfDate.Column = 2;
dfDate.Parent = <grfMain>;
dfInt : DataField = new;
dfInt.MaskType = MK_INTEGER;
dfInt.Row = 2;
dfInt.Column = 2;
dfInt.Parent = <grfMain>;
dfReal : DataField = new;
dfReal.MaskType = MK_FLOAT;
dfReal.Row = 3;
dfReal.Column = 2;
dfReal.Parent = <grfMain>;
The code above is called after the window has been opened with the
Open() statement.
Looking at the code above, one obvious omission is that the "Mapped
Type" of the Datafields are not set up. In the Forte window workshop, an
interface is provided to set up the "Mapped Type" of the Datafield
widgets, but I'm not sure how to do that dynamically, and that is
basically my biggest problem here.
(-2-) If I now run the window class, the Datafield widgets get created,
and they all have the correct input maks, but no validation gets done
when one tabs away from the field. For example, Datafields with
MaskType=MK_INTEGER will gladly accept '--1--0++7', while Datafields
created in the window workshop (mapping to IntegerNullables) will do a
validation, and not allow one to tab out of the field before the extra
minus and plus signs are not removed.
I have the same problem with the Datafields which have
MaskType=MK_Template and DateTemplate='dd/mm/yyyy'. For the date, one
can enter something like '2*\**\****', and leave the field, while the
same type of datafield created in the window workshop (mapped to a
DateTimeNullable), will not allow you to leave the field before a valid
date has not been entered. To summarise, the input masks of my
dynamically created Datafields work fine, but no validation gets done
when the field looses the focus.
(-3-) As a test, I used the Forte debugger ("view"-"local variables") to
look at the differences between Datafields created dynamically, and
those created in the Forte window workshop. One very obvious difference
was that Datafield attribute "MapTypeName" was filled in for the window
workshop Datafields, but not for my dynamically created Datafields. The
problem is that Forte does not allow me to set this attribute
dynamically in my code. How else can I setup the Mapped Type
dynamically?
(-4-) In order to have a consistent look-and-feel throughout our Forte
project, we are making use of Domain classes for DATE and DECIMAL data
entry fields. My questions are:
(4.1) How must I go about creating Datafields dynamically that make use
of these Domain classes?
(4.2) Is it also a matter of setting up the "MapTypeName" attribute,
which I cannot seem to do?
(4.3) Is the mapping done differently for Domain classes?
(-5-) Another interesting thing to note for Datafields created in the
Forte Window Workshop, is that if the mapped type is IntegerNullable
with Input Mask = Integer, or DoubleNullable with Input Mask = Float,
then the Object that the Datafield widget maps to, must first be
instantiated before the Loose-Focus validations will start to work. For
example, if a Datafield widget called "dfTestInt" was created in the
Forte window workshop, which maps to an IntegerNullable, and Input Mask
= Integer, then the following line is needed before the window is
displayed: dfTestInt = new;
Without this line, one can enter something like '2---3+++7', and leave
the field.
This is not true for Datafields where the mapped type is
DateTimeNullable with say Input Mask Template='dd\mm\yyyy'. In this case
validations are done even thought the object being mapped to, has not
been instantiated yet. In other words you will never be able to enter
'2*/**/****', and leave the field for datafield created in the window
workshop. Maybe in this case the validation is being done by the
template itself?
Thanks in advance
Riaan
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>what I mean is rendering JSF components on the fly, becuase some time you don't know things at design time. Lets say I am designing a page in creator that shows the total number of dependants that belongs to a primary inusrance member in text boxes. Of course we don't know in advance how many dependants we have for a specific member unless we go to databse and fetch all the data at runtime. Desiging some thing dynamic like that is very easy in CGI or ASP/JSP but JSF model seems very static due to it's design time feature.
So is it possible with JSF or not? -
Why Doesn't XMLIndex Create and Populate Upon Scale-Up For Eval Table?
Presently working with Oracle release 11.2.0.1 using xmltype securefile binary xml tables.
In a quandry here and hoping not to have to open an Oracle SR...
Able to create a working xmlindex against an 'Acme Eval' table in our development environment against an Acme eval table (estimate ~ 5GB) containing 325,550 rows. Creation takes about 10 mins. No partitioning is being used.
When trying the exact same xmlindex creation against our, much more powerful, pvs platform environment contaning 13,985,124 rows; the xmlindex object shows up as existing in the data dictionary, but the session never stops running after at least 24 hrs of runtime.
The pvs hardware environment uses: (1.) 24 processor, (2.) Solaris-64 OS, (3.) 128GB memory.
Two 1 hr AWR reports for the pvs environment shows a huge amount of logical read/writes. The foreground wait event; 'db file sequential read' dominates the DBTime @ 92%. There is about 4.6 GB physical reads/3.5GB physical writes - not too large relatively speaking. The I/O subsystem is having no problem handling the throughput. The top, by far,Time Model Statistics is the 'sql excute elapsed time' @ 99%. User I/O is the main foreground wait class @92%. These values are similar for both of the AWR report - except one report show the 'CREATE XMLINDEX...' statement as being the top sql. The other report shows ' INSERT INTO CROUTREACH.EVAL_IDX_TAB_I... ' As the top sql.
Been several days since this post. Hoping someone might be able to provide some insight or share their experiences on xmlindexes scaling up to millions of records in the 5 - 10 gb xmltype table range...
Regards,
Rick Blanchard
The frustration here is; there is no obvious database configuration, physical cpu, memory, or I/O issue - other than the logical gets centered around the db file sequential read' wait event.
Can't do much as far as adjusting the create index statement and underlying attendent Oracle xml operations - the main frustration factor here...
The xmlindex is still undergoing record insertions.
Additionally, in the pvs environment; no dml is allowed on the xmlindex and the select statement that works fine using the xmlindex via the optimizer in the development environment doesnt pick up the xmlindex in the pvs environment - as would be expected if the xmlindex wasn't completely populated.
Appears the xmlindex record population is stalled...
In the pvs environment, when performing the dml 'alter index croutreach.eval_xmlindex_ix noparallel';
get this error - typical when an xmlindex is being populated with records:
ALTER INDEX croutreach.eval_xmlindex_ix NOPARALLEL
Error report:
SQL Error: ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
00054. 00000 - "resource busy and acquire with NOWAIT specified"
*Cause: Resource interested is busy.
*Action: Retry if necessary. xmlindex create statement used in both cases is
(The underlying eval table is also set to a dop of 20):
CREATE
INDEX "EVAL_XMLINDEX_IX" ON "EVAL"
OBJECT_VALUE
INDEXTYPE IS "XDB"."XMLINDEX" PARAMETERS
'XMLTable eval_idx_tab_I XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7",
DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/eval''
COLUMNS
eval_catt VARCHAR2(50) path ''@category'',
acne_mbr_idd VARCHAR2(50) path ''@acmeMemberId'',
eval_idd VARCHAR2(50) path ''@evalId'',
eval_dtt TIMESTAMP WITH TIME ZONE path ''@eval_dt'',
derivedFact XMLTYPE path ''derivedFacts/ns7:derivedFact'' virtual
XMLTable eval_idx_tab_II XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7",
DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/ns7:derivedFact'' passing derivedFact
COLUMNS
defId VARCHAR2(50) path ''ns7:defId'',
factSource VARCHAR2(50) path ''ns7:factSource'',
origInferred_dt TIMESTAMP WITH TIME ZONE path ''ns7:origInferred_dt'',
typee VARCHAR2(20) path ''ns7:factValue/ns7:type'',
valuee VARCHAR2(1000) path ''ns7:factValue/ns7:value'',
defUrn VARCHAR2(100) path ''ns7:defUrn'''
)parallel 20;The development environment eval table is:
CREATE
TABLE "N98991"."EVAL" OF XMLTYPE
CONSTRAINT "EVAL_ID_PK" PRIMARY KEY ("EVAL_ID") USING INDEX PCTFREE 10
INITRANS 4 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT
1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
DEFAULT) TABLESPACE "ACME_DATA" ENABLE
XMLTYPE STORE AS SECUREFILE BINARY XML
TABLESPACE "ACME_DATA" ENABLE STORAGE IN ROW CHUNK 8192 CACHE NOCOMPRESS
KEEP_DUPLICATES STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS
2147483645 PCTINCREASE 0 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT)
ALLOW NONSCHEMA ALLOW ANYSCHEMA VIRTUAL COLUMNS
"EVAL_DT" AS (SYS_EXTRACT_UTC(CAST(TO_TIMESTAMP_TZ(SYS_XQ_UPKXML2SQL(
SYS_XQEXVAL(XMLQUERY(
'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03"; (::)
/eval/@eval_dt'
PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
16777216,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SS.FFTZH:TZM') AS TIMESTAMP
WITH
TIME ZONE))),
"EVAL_CAT" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@category'
PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
16777216,0),50,1,2) AS VARCHAR2(50))),
"ACME_MBR_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@acmeMemberId'
PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
16777216,0),50,1,2) AS VARCHAR2(50))),
"EVAL_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@evalId'
PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
16777216,0),50,1,2) AS VARCHAR2(50)))
PCTFREE 0 PCTUSED 80 INITRANS 4 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
TABLESPACE "ACME_DATA" PARALLEL 20 ;
CREATE
INDEX "N98991"."EVAL_XMLINDEX_IX" ON "N98991"."EVAL"
OBJECT_VALUE
INDEXTYPE IS "XDB"."XMLINDEX" PARAMETERS
'XMLTable eval_idx_tab_I XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7",
DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/eval''
COLUMNS
eval_catt VARCHAR2(50) path ''@category'',
acne_mbr_idd VARCHAR2(50) path ''@acmeMemberId'',
eval_idd VARCHAR2(50) path ''@evalId'',
eval_dtt TIMESTAMP WITH TIME ZONE path ''@eval_dt'',
derivedFact XMLTYPE path ''derivedFacts/ns7:derivedFact'' virtual
XMLTable eval_idx_tab_II XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7",
DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/ns7:derivedFact'' passing derivedFact
COLUMNS
defId VARCHAR2(50) path ''ns7:defId'',
factSource VARCHAR2(50) path ''ns7:factSource'',
origInferred_dt TIMESTAMP WITH TIME ZONE path ''ns7:origInferred_dt'',
typee VARCHAR2(20) path ''ns7:factValue/ns7:type'',
valuee VARCHAR2(1000) path ''ns7:factValue/ns7:value'',
defUrn VARCHAR2(100) path ''ns7:defUrn'''
CREATE UNIQUE INDEX "N98991"."SYS_C00415365" ON "N98991"."EVAL"
"SYS_NC_OID$"
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
TABLESPACE "ACME_DATA" ;
CREATE UNIQUE INDEX "N98991"."SYS_IL0000688125C00003$$" ON "N98991"."EVAL"
PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 1048576
MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST
GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "ACME_DATA" PARALLEL (DEGREE 0 INSTANCES 0) ;
CREATE UNIQUE INDEX "N98991"."EVAL_ID_PK" ON "N98991"."EVAL" ("EVAL_ID")
PCTFREE 10 INITRANS 4 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536
NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
DEFAULT) TABLESPACE "ACME_DATA" ;The pvs environment's eval table and xmlindex defintion is:
CREATE
TABLE "CROUTREACH"."EVAL" OF XMLTYPE
CONSTRAINT "EVAL_ID_PK" PRIMARY KEY ("EVAL_ID") USING INDEX PCTFREE 10
INITRANS 4 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT
1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
DEFAULT) TABLESPACE "ACME_DATA" ENABLE
XMLTYPE STORE AS SECUREFILE BINARY XML
TABLESPACE "ACME_DATA" ENABLE STORAGE IN ROW CHUNK 8192 CACHE NOCOMPRESS
KEEP_DUPLICATES STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS
2147483645 PCTINCREASE 0 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT)
ALLOW NONSCHEMA ALLOW ANYSCHEMA VIRTUAL COLUMNS
"EVAL_DT" AS (SYS_EXTRACT_UTC(CAST(TO_TIMESTAMP_TZ(SYS_XQ_UPKXML2SQL(
SYS_XQEXVAL(XMLQUERY(
'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03"; (::)
/eval/@eval_dt'
PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
16777216,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SS.FFTZH:TZM') AS TIMESTAMP
WITH
TIME ZONE))),
"EVAL_CAT" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@category'
PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
16777216,0),50,1,2) AS VARCHAR2(50))),
"ACME_MBR_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@acmeMemberId'
PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
16777216,0),50,1,2) AS VARCHAR2(50))),
"EVAL_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@evalId'
PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
16777216,0),50,1,2) AS VARCHAR2(50)))
PCTFREE 0 PCTUSED 80 INITRANS 4 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
TABLESPACE "ACME_DATA" PARALLEL 20 ;
CREATE
INDEX "CROUTREACH"."EVAL_IDX_MBR_ID_EVAL_CAT" ON "CROUTREACH"."EVAL"
"ACME_MBR_ID",
"EVAL_CAT"
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
TABLESPACE "ACME_DATA" PARALLEL 16 ;
CREATE UNIQUE INDEX "CROUTREACH"."SYS_C0018448" ON "CROUTREACH"."EVAL"
"SYS_NC_OID$"
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
CELL_FLASH_CACHE DEFAULT
TABLESPACE "ACME_DATA" ;
CREATE UNIQUE INDEX "CROUTREACH"."SYS_IL0000094844C00003$$" ON "CROUTREACH".
"EVAL"
PCTFREE 10 INITRANS 2 MAXTRANS 255 NOLOGGING STORAGE(INITIAL 65536 NEXT
1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
DEFAULT) TABLESPACE "ACME_DATA" PARALLEL (DEGREE 0 INSTANCES 0) ;
CREATE UNIQUE INDEX "CROUTREACH"."EVAL_ID_PK" ON "CROUTREACH"."EVAL" ("EVAL_ID"
) PCTFREE 10 INITRANS 4 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536
NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
DEFAULT) TABLESPACE "ACME_DATA" PARALLEL 16 ;
CREATE
INDEX "CROUTREACH"."EVAL_XMLINDEX_IX" ON "CROUTREACH"."EVAL"
OBJECT_VALUE
INDEXTYPE IS "XDB"."XMLINDEX" PARAMETERS
'XMLTable eval_idx_tab_I XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7",
DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/eval''
COLUMNS
eval_catt VARCHAR2(50) path ''@category'',
acne_mbr_idd VARCHAR2(50) path ''@acmeMemberId'',
eval_idd VARCHAR2(50) path ''@evalId'',
eval_dtt TIMESTAMP WITH TIME ZONE path ''@eval_dt'',
derivedFact XMLTYPE path ''derivedFacts/ns7:derivedFact'' virtual
XMLTable eval_idx_tab_II XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7",
DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/ns7:derivedFact'' passing derivedFact
COLUMNS
defId VARCHAR2(50) path ''ns7:defId'',
factSource VARCHAR2(50) path ''ns7:factSource'',
origInferred_dt TIMESTAMP WITH TIME ZONE path ''ns7:origInferred_dt'',
typee VARCHAR2(20) path ''ns7:factValue/ns7:type'',
valuee VARCHAR2(1000) path ''ns7:factValue/ns7:value'',
defUrn VARCHAR2(100) path ''ns7:defUrn'''
PARALLEL 20 ;Wondering if anyone has run into xmlindex creation and populating problems similar to this, when scaling up from thousands of records to millions of records.
At this point, for my work to be useful; must be able to get the xmlindex to at least successfully create and populate @ the 13.9 million records.
Any suggestions, much appreciated.
Regards,
Rick Blanchard
Edited by: RickBlanchardSRS on May 29, 2012 1:03 PMWe didn't use "XMLDB XMLType partitioning" actually, but something simple like
CREATE TABLE P_DATA
( "ID" NUMBER(15,0),
"DOC" "SYS"."XMLTYPE"
) SEGMENT CREATION IMMEDIATE
NOCOMPRESS NOLOGGING
TABLESPACE "XML_DATA"
XMLTYPE COLUMN "DOC" STORE AS SECUREFILE BINARY XML
(TABLESPACE "XML_DATA"
NOCOMPRESS KEEP_DUPLICATES)
XMLSCHEMA "http://www.xxxxx.com/schema_v3.0.xsd"
ELEMENT "RECORD"
DISALLOW NONSCHEMA
PARTITION BY RANGE(ID)
(PARTITION Q_DATA_PART_01 VALUES LESS THAN (100000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_02 VALUES LESS THAN (200000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_03 VALUES LESS THAN (300000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_04 VALUES LESS THAN (400000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_05 VALUES LESS THAN (500000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_06 VALUES LESS THAN (600000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_07 VALUES LESS THAN (700000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_08 VALUES LESS THAN (800000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_09 VALUES LESS THAN (900000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_10 VALUES LESS THAN (1000000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_11 VALUES LESS THAN (1100000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_12 VALUES LESS THAN (1200000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_13 VALUES LESS THAN (1300000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_14 VALUES LESS THAN (1400000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_15 VALUES LESS THAN (1500000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_16 VALUES LESS THAN (1600000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_17 VALUES LESS THAN (1700000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_18 VALUES LESS THAN (1800000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_19 VALUES LESS THAN (1900000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_20 VALUES LESS THAN (2000000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_21 VALUES LESS THAN (2100000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_22 VALUES LESS THAN (2200000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_23 VALUES LESS THAN (2300000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_24 VALUES LESS THAN (2400000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_25 VALUES LESS THAN (2500000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_26 VALUES LESS THAN (2600000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_27 VALUES LESS THAN (2700000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_28 VALUES LESS THAN (2800000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_29 VALUES LESS THAN (2900000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_30 VALUES LESS THAN (3000000000) TABLESPACE "XML_DATA" NOCOMPRESS
,PARTITION Q_DATA_PART_MAX VALUES LESS THAN (MAXVALUE) TABLESPACE "XML_DATA" NOCOMPRESS
);Could be mistaken, but if I remember correctly we ended up with 10mill record id ranges. We needed to do this anyway (=using partitioning), otherwise we would have reached the maximum amount of records in a column physical limit (for our used db_block_size)
Edited by: Marco Gralike on May 29, 2012 10:02 PM -
I received notification of ANOTHER iTunes update being available, so I attempted to install the update on my Toshiba Satellite laptop running Windows Vista. During the update process, two pop-up announced that I had a "Microsoft Visual C++ Runtime Library" Runtime Error, R6034 and another pop-up that states "iTunes" iTunes was not installed correctly. Please reinstall iTunes. However, I cannot open iTunes. I get the same pop-up telling me to reinstall iTunes.
I had many songs in my iTunes library that came from sources other than iTunes, mostly my own CDs. Plus, I have nearly $100 credit remaining in the iTunes store. I'm converned I will lose the songs and store credit if I reinstall iTunes. So my questions are:
1. How can I reinstall iTunes?
2. If I reinstall it, will I lose my store credit and non-iTunes songs?
Thanks,
JimSee this User Tip by turingtest2
https://discussions.apple.com/docs/DOC-6562
JimmieJag wrote:
2. If I reinstall it, will I lose my store credit and non-iTunes songs?
Nothing should be lost... However... it is both Prudent and Recommended that a backup should have been created and maintained. -
How do I create AND USE a new iTunes account?
Hi there,
My girlfriend has finally traded in her windows (*spits*) phone for an iphone after months of me drilling it into her that her phone sucked... The problem now is that we share a PC and she wants to fill her spanking new iphone with crap music. So we have a folder set up ready to drag into a fresh new itunes library but upon plugging her phone in it pops up with "synching Adam's iphone" First off... How do I tell itunes that it's making a mistake and that this new device is not my phone without hurting it's feelings? We have tried going to the itunes store and logging in with her apple ID but it still tries synching Adam's iphone and filling her phone with my goodies...
I'm assuming it's doing this because my apple ID is attached to the itunes program on my windows (*spits*) PC... So if this is the case then how do I unattach it and attach my girlfriends ID in order to fill her phone with the worst music known to mankind? Also I'm running the latest version of itunes with windows 8 OS (*spits*)
On a side note, if you haven't already gathered I'm an avid apple fan and as soon as I can afford it I'll be trading in my piece of... Trading in my PC for a mac however as an avid apple fan I'm frankly disappointed with the design quality of the itunes software... Why is it so complicated? Everything apple I've ever owned has been so simple and user friendly that I've never looked back... Then I come across this monstrosity of a program labeled itunes... Call it blasphemy but it almost reminds me of a badly designed windows program... You know like... all of them? Anyways I'm ranting now so I'll shup and let you answer the original question lol
Thanks in advance guys.
Adam.Hello Poggerz
The best way to keep data separate is to create a different user for just her. That way there is no data getting crossed. The reason it said your name on her iPhone is probably that is what your user name is for your computer. Check out the article below for more detailed information to set that up.
How to use multiple iPhone, iPad, or iPod devices with one computer
http://support.apple.com/kb/ht1495
Regards,
-Norm G.
Maybe you are looking for
-
Problem with customer open items. Transaction FBL5N and F-30
Hi all, I have a little problem with a customer. When I see transaction FBL5N, I can see 3 open items, but, when I go to clear then in F-30, no appears. Anybody can help me. Thanks in advance
-
Problems installing Illustrator and Indesign from CS3 suite
I am trying to install Illustrator and Indesign from CS3 suite. Previously I had been running a trial version on my Mac, and now am trying to install the suite from the original install discs. I have gone through the process of uninstalling all of
-
What do I miss when passing an URL a parameter to a query?
Hello, Here I am again with my problem. I am trying to understand what happens behind the whole thing to achieve the best performance. I have a single page which accepts a parameter. Since I must have one page I cannot use the "ExecuteWithParameters"
-
Insertion of date in dd-mmm-yyyy format
I have a jsp page, from that i can enter values in oracle database. my jsp page is working, but the problem is that it can only accept the date dd-mmm-yyyy format. i.e 20-jun-2004, but when i enter date in dd/mm/yyyy format i.e 20/06/2004, it does no
-
Enforce Tax on Purchase Order Not Working
Hello Experts, I am working in 11.5.10.2 and I am trying to enable the "enforce tax on purchase order." I've enabled this functionality in Payables and I test it by creating an Invoice. The Tax Code at the Header level of the invoice is not the same