Plugin XML and XPath?
I guess that if the question is marked as answer, nobody has no interest left against it.
So I repost this as a new question.
Is it possible to use XPath expressions to find nodes XML with XML plugin?
Examples if this is possible?
Thank you.
PS. somewhere on the forum I saw the answer in a year or a few years ago that XPath is supported by Orchestrator, but the person who promised to find the time to show some examples very probably forgot to do.
Find an introduction to the equivalent E4X and xpath for E4X here: http://wso2.org/project/mashup/0.2/docs/e4xquickstart.html
Just E4X amortization is true for support in browsers. E4X is part of the standard javascript, it will not go away in vCO.
See you soon,.
Joerg
Tags: VMware
Similar Questions
-
Creation of OAM authentication Plugins, plans and policy responses by command line
Hi all
I was plenty around, search the internet and MOS but did not find anything so far.
In OAM (11.1.2.2.4) I am trying to create a PlugIn for authentication, specify the step, the config params, orchestration, and so on. It works pretty well through the GUI. However, as I have a lot of different situations to deal with, I would like to automate this, using a command line tool (wlst.sh I think).
Does anyone know how I could do?
Side, I would also seek the same for patterns of authentication and responses, but I hope that as soon as I know how to do it on the plugin from I can derive from those others here.
It is doable but completely undocumented. What you need to do is wlst write scripts that access the mbean OAM, who is responsible for the update of oam - config.xml to add the required parameters.
What I do is to capture the current settings (IE make a backup of oam-config. (XML), and then perform the configuration via oamconsole. Then, compare the oam - current config.xml with the backup and note the differences. Using wlst and OAM mbean to add these entries. This wil you require to understand how to upgrade the config.XML of oam - via the mbean and involves a bit of understanding of jython to do the job.
For policy responses and enforcement strategies, you can use the OAM REST interface which you can drive from curl or anything that can handle http requests. It is much easier to use than rreg.
-
Documaker: How to use this trigger to overflow and XPath.
Hello
My first question, please help me!
I create a form as follows.
A page is set to overflow with group.
______________________
Page (Body)
Group
* Trigger manual Mask (Count) of research:! / xxx/data/RiskInfo/risk
Section header
Section-A
* Trigger manual search Mask(True/false):! / xxx/data/RiskInfo/risk [*] [Code = 'A']
Section-B
* Trigger manual search Mask(True/false):! / xxx/data/RiskInfo/risk [*] [Code = 'B']
End group
______________________
The XML code example is as follows.
.....
< RiskInfo >
< risk >
< code > < code > A
< name > XXX < / name >
< / risk >
< risk >
B < code > < code >
< name > YYY < / name >
< / risk >
< / RiskInfo >
.....
______________________
Overflow is no problem.
But the Section A and Section B triggers are not worked.
This setting of relaxation Section has poster-twice.
I understand that [*] is false, because it is working OK if I replace [*] [1] or [2].
But I do not understand the correct method...
Probably, I think I need to use the OverFlowSymbol.
Where should I put the OverFlowSymbol? This thought does not?
Please teach me the method works this trigger to overflow and XPath.
Thank youYou should be able to use the overflow user @subform in your xpath to define the correct index based on the current subform.
You can try something like:
! /XXX/data/RiskInfo/risk[**@subform**]/name
You can find more information on handling overflow with XML in the DMStudio user guide (Appendix B are provided in subsection 12.1 Rel) and function of the @subform in the section Sub user forms of the document.
-
example VSO.xml and solarSystem
I'm kind of cunfused.
In the solarSystem example I see that it is an action called getAllPlanets() VCO.
This action configured in the vso.xml and it is part of the .dar file or it is part of the VCO displays?
My main goal at the end must be able to deploy/install my plugin and action to VCO in the simplest possible. (For more used by clients)
Help will be appreciated.
Well, I guess I got what you ask.
The getAllPlanets action was created when the plug-in has been deployed and was imported in the form of action within a package file. Now this package file, com.vmware.samples.solarsystem.package, contains this action item, which is then shipped as a package file in the plugin solarsystem .dar file. as a result, this action gets deployed automatically when you deploy your plugin solarsystem. It is not encoded anywhere in the code of the plugin, but the action is imported into the package file.
I hope that answers your query.
-
the adobe flash plugin failed and none of the solutions have helped
the adobe flash plugin failed and none of the solutions listed in the section help objects! I tried all the solutions listed, but none seem to work.
This has happened
Each time Firefox opened
He started a week ago ==
Why Flash is now so unstable in Firefox? Flash broke down indicator is now a familiar visitor (it's usually when I refresh the page isn't extremely mortal!) But... I'll have to go back to IE to check the reliability with my own sites - which are heavily dependent on flash for animation and video. What can we do? My installations of Firefox and Flash are updated. Really disappointing.
-
Hi, I have a laptop from a friend at work as he complained that she simply close and restart constantly on him.
I took it home, and strangely had it turned on for a while before he was the first reboot.
It restarts, and then he would say "fill the stadium"3 of 3"0% of some Windows Update (I don't know that we would be).»
Then after having like 20 seconds, the login screen would come.
I connect and wait for it to load everything in startup.
As soon as everything in startup was responsible, it would then proceed to shut down the PC and restarts.
Then he goes back to the "end stage"3 of 3"0%.» This happens infinitely.
I am able to do in safe mode without this restart.
I tried to rename pending.xml and editing the registry, still no go. Now, I see same of ' fill in step "3 of 3" to 0% more... it's just continually restart. "
I am trying to go about it without having to reinstall the entire operating system (it would be quite difficult because manufacturers no longer send disks with their products).
Any ideas would be helpful! Thank you!
Mike
Given that Windows Update has nothing to do with the problem now, please start a new thread in this forum for assistance: http://social.answers.microsoft.com/Forums/en-US/vistarepair/threads
Tip: Post a link to this thread in your first post in the new forum of reference, please.
Looks like you may have a hardware problem on your hands. Good luck! ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft
-
I installed Windows 7 on my laptop and it terribly slow. I used the XP disc and tried to reinstall it. Came in halfway through the messages that he was missing the following files: cmnicfg.xm, ipcfg.xml, osinfo.xml, potscfg.xml and pppcfg.xml. Now, it does nothing. Help!
Hi SharonPittman,
(a) you suggest to clean the Windows XP installation CD with a piece of cloth & then try to install windows XP.
For more information, see these links.
How to install or upgrade to Windows XP
Reference: Install, reinstall, or uninstall Windows
(b) if the problem persists, there is possibility that the Windows XP CD is damaged.
I recommend buying a Microsoft Store installation disc.
You can contact Microsoft Store at the link given below.
http://www.microsoftstore.com/store/msstore/cat/CategoryID.37286600
Hope the helps of information.
Please post back and we do know. -
uninstall the plugin vcenter and start again
I was able to install and configure the virtual appliance and the plugin, but after using the functionality of the virtual appliance upgrade, it would barely work and recovered memory errors so I thought I would start just above. Reinstall the virtual appliance has been easy, but when I try to save it as a virtual centre I get an error saying that there is already a registered to this virtual Center. How can I remove it to vcenter so that I can save my vceter with the virtual appliance?
The method: "com.dell.plugin.Dell management plugin" apply to device version 1.7 and below.
For versions after 2.0 and above all, follow these steps:
1. enter http://
/mob .2 Select the link to the content.
3. Select the ExtendManager link.
4. Select the UnregisterExtendsion link.
5. Enter the key of the extension to unregister: " com.dell.plugin.OpenManage_Integration_for_VMware_vCenter_WebClient" , and then click InvokeMethod
6. Enter the extension key to unregister: " com.dell.plugin.OpenManage_Integration_for_VMware_vCenter" , and then click InvokeMethod
7. in the vSphere client, turning off the appliance Plug and remove it.
Thank you
Vikram KV
-
vCenter Plugin - host and iDRAC on separate networks - Options?
Hi all
We have 2 x R720 of virtual hosts with LOM IPs on the LAN (10.227.0.x) and runs in dedicated mode NIC iDRAC IPs on a physically separate management network - iDRAC. 10.227.2.x and is accessible from the management network. Dell vCenter Management Plugin is running and registered with vCenter a connection profiles - 1 by the server.
When I test the connection profile, he can talk to the IP of LOM, but fails on the IP of the iDRAC. Firmware and guarantee of stock also fail. IDRAC IPs are not the ping requests from the inside of the base of the plugin CentOS.
The script of http://www.dell.com/support/troubleshooting/us/en/19/KCS/KcsArticles/ArticleView?c=us&docid=597574 watch ProtocolEndpoint.bat is correctly resolve the IP of the iDRAC, but obviously he can't talk about it because the networks are not related. So, what are my options here:
- Can I somehow configure iDRAC with a LAN and IP network management (probably spend far using the iDRAC dedicated NIC)?
- Should I just temporarily change the iDRAC dedicated NIC on the LAN, Exchange patch cords, vCenter Plugin do and then come back?
- Is it possible to set up a route network in the CentOS based for the plugin? Get root access to who seems to be not not possible (admin password does not work and account readonly is exactly that, and the command line does not work either) - this combined with some other fiddling network could work
- Other options?
I would prefer if the plugin could speak to iDRAC R720 24/7 constant monitoring, but the main purpose of the plugin for us is occasional updates, amending thus temporarily iDRAC dedicated IPs is an option.
Thank you
Lukas
Update: works around this by temporarily putting iDRAC NIC on the local network.
-
Hey,.
Not sure if this is the right section on the forum:
I was wondering if there was a way to retrieve data from an XML page.
For example, I want to create a BBApp that can request a XML page and once it has loaded to extract all of the appropriate fields and load them into a graphical user interface - without actually loading the page, basically I just want to create demand and get the XML Source Code and mine through this XML Source data.
Thanks in advance,
Jovinus Sveinbjornsson
Hi Eva,
This can easily be done in a BlackBerry Widget. You will use the built in support of AJAX and the XMLHttpRequest object.
You can retrieve the contents of the XML file via an AJAX call. When it returns can then access the property of '.responseXML' which has already crawled your XML DOM document. Just to make sure to whitelist the domain in the config.xml file to allow access to that external resource. There are a bunch of samples and videos that explain this concept.
You would then just browse XML and create your HTML code to reflect your data and insert it into the page. A good tutorial on AJAX can be found here:
http://www.w3schools.com/AJAX/default.asp
Now for some advice
If you are recovering data and then display as Web content within a widget, I would really recommend format of that content on the server in its HTML markup before sending it to your Widget in the AJAX request. The reason why I recommend this is that there is a lot of manipulation of the DOM creating HTML nodes if you look at the raw XML data that is returned.
If you flip it over already in HTML server-side, you can simply replace an item on your web page using innerHTML. On a device mobile, if you can offload the work to a server it certainly helps performance.
-
Hello!
When you deploy a WAR for WebLogic 10.3.5, what is the difference between the prefer-application-package element in the weblogic.xml and weblogic application files. XML?
In my WARs WEB-INF/lib / I have a JAR that contains classes that are already provided by the container (but older versions).
If I do not prefer-application-packages use my application gets then the classes provided by the container.
If I use prefer-application-packages in weblogic.xml can I get classes in WAR/WEB-INF/lib, which is expected.
But if I use prefer application-packages in weblogic - application.xml, then I get the versions of container. Why?
Is there a difference between these two options?
The exact data that I use are:
(foo.bar. * is the name of the conflicting package;) Add or remove the linex tagged XXXX)
WEB-INF/weblogic.xml:
<?xml version="1.0" encoding="UTF-8"?> <wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd"> <wls:container-descriptor> <wls:show-archived-real-path-enabled>true</wls:show-archived-real-path-enabled> <wls:prefer-application-packages> <!-- XXXX --> <wls:package-name>foo.bar.*</wls:package-name> <!-- XXXX --> </wls:prefer-application-packages> <!-- XXXX --> <wls:prefer-application-resources> <wls:resource-name>META-INF/services/some....</wls:resource-name> <wls:resource-name>META-INF/services/unrelated...</wls:resource-name> <wls:resource-name>META-INF/services/stuff...</wls:resource-name> </wls:prefer-application-resources> </wls:container-descriptor> <wls:jsp-descriptor> <wls:page-check-seconds>-1</wls:page-check-seconds> <wls:precompile>true</wls:precompile> <wls:precompile-continue>true</wls:precompile-continue> <wls:keepgenerated>true</wls:keepgenerated> </wls:jsp-descriptor> <wls:session-descriptor> <wls:persistent-store-type>replicated_if_clustered</wls:persistent-store-type> </wls:session-descriptor> </wls:weblogic-web-app>
META-INF/weblogic - application.xml:
<?xml version="1.0" encoding="UTF-8"?> <weblogic-application xmlns="http://xmlns.oracle.com/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.2/weblogic-application.xsd"> <application-param> <param-name>webapp.encoding.default</param-name> <param-value>UTF-8</param-value> </application-param> <xml> <parser-factory> <saxparser-factory> org.apache.xerces.jaxp.SAXParserFactoryImpl </saxparser-factory> <document-builder-factory> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl </document-builder-factory> <transformer-factory> org.apache.xalan.processor.TransformerFactoryImpl </transformer-factory> </parser-factory> </xml> <prefer-application-packages> <package-name>foo.bar.*</package-name> <!-- XXXX --> <package-name>javax.jws.*</package-name> <package-name>javax.xml.ws.*</package-name> <package-name>org.apache.cxf.*</package-name> <package-name>antlr.*</package-name> <package-name>org.xmlsoap.schemas.wsdl.*</package-name> </prefer-application-packages> </weblogic-application>
WebLogic - application.xml has no meaning in wars, it is only used in the ears.
-
Hi all
Please find test data and results as XML and SQL output.
Version : Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
create table emp_xml (empno number, emp_name varchar2 (100), by e-mail to varchar2 (100));
insert into emp_xml values (100, 'DAVID',' [email protected]');
insert into emp_xml values (101, 'ROBERT',' [email protected]');
insert into emp_xml values (102, 'DANIEL',' [email protected]');
CREATE table emp_dept_xml (empno number, dept_list varchar2 (4000));
insert into emp_dept_xml values (' 100,'10, 20, 30, ");
insert into emp_dept_xml values (' 101,'40, 20, 10, 30, 50, ");
insert into emp_dept_xml values (102, ' 10'),
Expected in SQL output
-----------------------
EMPNO EMP_NAME EMAIL DEPTNO
DAVID 100 [email protected] 10
DAVID 100 [email protected] 20
DAVID 100 [email protected] 30
ROBERT 101 [email protected] 10
ROBERT 101 [email protected] 20
ROBERT 101 [email protected] 30
ROBERT 101 [email protected] 40
ROBERT 101 [email protected] 50
DANIEL 102 [email protected] 10
Results in XML
-----------------------
< USERS_DETAILS >
< USER >
< EMPNO > 100 < / EMPNO >
DAVID < NAME > < / NAME >
< EMAIL > [email protected] < / EMAIL >
< ASSIGNED_DEPT >
< DEPT > 10 < / DEPT >
< DEPT > 20 < / DEPT >
< DEPT > 30 < / DEPT >
< / ASSIGNED_DEPT >
< / USER >
< USER >
101/EMPNO < EMPNO > >
ROBERT < NAME > < / NAME >
< EMAIL > [email protected] < / EMAIL >
< ASSIGNED_DEPT >
< DEPT > 10 < / DEPT >
< DEPT > 20 < / DEPT >
< DEPT > 30 < / DEPT >
< DEPT > 40 < / DEPT >
< DEPT > 50 < / DEPT >
< / ASSIGNED_DEPT >
< / USER >
< USER >
< > 102 EMPNO < / EMPNO >
DANIEL < NAME > < / NAME >
< EMAIL > [email protected] < / EMAIL >
< ASSIGNED_DEPT >
< DEPT > 10 < / DEPT >
< / ASSIGNED_DEPT >
< / USER >
< / USERS_DETAILS >
Thank you
Rambeau
SQL> select e.empno 2 , e.emp_name 3 , e.email 4 , regexp_substr(d.dept_list, '[^,]+', 1, level) deptno 5 from emp_xml e 6 join emp_dept_xml d 7 on e.empno = d.empno 8 connect 9 by level <= length(d.dept_list) - length(replace(dept_list, ',')) 10 and prior e.empno = e.empno 11 and prior dbms_random.value() is not null; EMPNO EMP_NAME EMAIL DEPTNO ---------- -------------------- -------------------- -------------------- 100 DAVID [email protected] 10 100 DAVID [email protected] 20 100 DAVID [email protected] 30 101 ROBERT [email protected] 40 101 ROBERT [email protected] 20 101 ROBERT [email protected] 10 101 ROBERT [email protected] 30 101 ROBERT [email protected] 50 102 DANIEL [email protected] 10 9 rows selected. SQL> select xmlelement 2 ( 3 "USERS_DETAILS" 4 , xmlagg(xmlelement 5 ( 6 "USER" 7 , xmlelement("EMPNO", empno) 8 , xmlelement("NAME", emp_name) 9 , xmlelement("ASSIGNED_DEPT", xmlagg(xmlelement("DEPT", deptno))) 10 )) 11 ).extract('*') xml_output 12 from ( 13 select e.empno 14 , e.emp_name 15 , e.email 16 , regexp_substr(d.dept_list, '[^,]+', 1, level) deptno 17 from emp_xml e 18 join emp_dept_xml d 19 on e.empno = d.empno 20 connect 21 by level <= length(d.dept_list) - length(replace(dept_list, ',')) 22 and prior e.empno = e.empno 23 and prior dbms_random.value() is not null 24 ) 25 group 26 by empno 27 , emp_name; XML_OUTPUT --------------------------------------------------------------------------------
100 DAVID 10 20 30 101 ROBERT 40 50 30 20 10 102 DANIEL 10 -
Rights allowed the collection of XML and PDF of
Hello
Requirements is something in this line... Convert 3 page word doc - with the name field, date field and a few boxes to PDF. It would send then send back by e-mail, for further processing. Interested in the actual data rather than the PDF form.
I used Adobe LiveCycle designer to create rights permit PDF with fields name, drop-down, radio buttons and submit by email button. Only reason that I turned him on rights is so that the user can save the partially completed document locally and later fill it out completely and send through the desktop e-mail client. End users would have the last drive in your computer and the outlook e-mail client.
I guess, when the user selects the button send, an e-mail message starts with setting XML extension and can send it. On my end, I have user XML parser and read the data. I don't have the real PDF.
Would be, collection of data, in this way, always drop less 500 use limit under license on PDF with Reader Extensions enabled.
There is no comment or digital signatures involved or collected. Only the data in the form of XML and not the real PDF.
Thanks in advance.
If you (the licensee) are not extract data to an instance of an extended document (PDF) that contains the data of the beneficiary, I don't see how you can violate the agreement.
-
Compare 2 different versions of xml and highlite the differences
Hello
Currently we have xml and which is displayed on the web page using css style sheets.
The same xml that we remain majority but with small changes (different say version created after a week).
We want to be able to follow the differences with the previous version and highlight the differences, when to display in the web page.
Please let know us if this is possible and how.
Thank you.What is your version of the database? (SELECT * FROM version$ v)
On 11.2.0.3, update of XQuery can be useful.
On lower versions, I'd do it like this:
SQL> WITH sample_data AS ( 2 SELECT xmltype( 3 '
4 ') doc1, 15 xmltype('5
147934 6MILLER 7CLERK 87782 91982-01-23T00:00:00 101300 1112 10 1316 ') doc2 28 FROM dual 29 ) 30 SELECT XMLSerialize(document 31 XMLPatch( 32 doc1 33 , XMLQuery( 34 'declare namespace xd = "http://xmlns.oracle.com/xdb/xdiff.xsd"; (: :) 35 declare function local:copy($itemset as item()*) as item()* { 36 for $i in $itemset 37 return 38 typeswitch($i) 39 case element(xd:content) return element {node-name($i)} {17
277934 18MILLER 19CLERK 207782 21xyz 221982-01-23T00:00:00 231300 2425 10 26{local:copy($i/(node()|@*))} } 40 case element() return element {node-name($i)} { local:copy($i/(node()|@*)) } 41 default return $i 42 }; local:copy(*)' 43 passing XMLDiff(doc1, doc2) 44 returning content 45 ) 46 ) 47 as clob indent 48 ) 49 FROM sample_data 50 ; XMLSERIALIZE(DOCUMENTXMLPATCH( --------------------------------------------------------------------------------7934 MILLER CLERK 7782 xyz 1982-01-23T00:00:00 1300 10 Basically, take us the XMLDiff output and modify it slightly to insert the tag
. Then, simply call the XMLPatch function with this newly formed Xdiff document. Note that I would normally use XSLT (identity model) to modify Xdiff output but there seems to be a bug when dealing with node Processing, where my using the equivalent of XQuery.
Published by: odie_63 on September 13. 2012 16:14
-
Need help to read a _fmb. XML and write the properties of the element to a table
We want to retrieve all the properties of elements of forms at a table.
Table has this format:
We want to get all D_e_p_a_r_t_m_e_n_t_s.fmb items (blocks, paintings, text etc.). So first convert us it to XML and we get the D_e_p_a_r_t_m_e_n_t_s_fmb.xml file which is shown below.Describing oracle_forms_item_list.... NAME Null? Type ------------------------------- --------- ----- FORM_NAME NOT NULL VARCHAR2(100) ITEM_NAME NOT NULL VARCHAR2(50) ITEM_TYPE NOT NULL VARCHAR2(50) PROPERTY NOT NULL VARCHAR2(50) PROPERTY_VALUE VARCHAR2(500)
Now, we want to read this file with UTL_FILE (in a PL/SQL stored procedure) and fill in the chart above like this:<?xml version = '1.0' encoding = 'UTF-8'?> <Module version="101020002" xmlns="http://xmlns.oracle.com/Forms"> <FormModule Name="D_E_P_A_R_T_M_E_N_T_S" ConsoleWindow="WINDOW1" DirtyInfo="true" MenuModule="DEFAULT&SMARTBAR" Title="MODULE5"> <Coordinate CharacterCellWidth="7" CoordinateSystem="Real" CharacterCellHeight="14" RealUnit="Point" DefaultFontScaling="true"/> <Alert Name="ALERT6" DirtyInfo="true" DefaultAlertButton="Button 2" AlertMessage="Do you want to save ???" Button2Label="No" AlertStyle="Caution" Title="Saving........................... <>" Button1Label="Yes"/> <Block Name="DEPT" ScrollbarTabPageName="" DirtyInfo="true" QueryDataSourceName="dept" ScrollbarWidth="14" ScrollbarYPosition="39" ShowScrollbar="true" ScrollbarCanvasName="CANVAS4" ScrollbarLength="70" RecordsDisplayCount="5" ScrollbarXPosition="237"> <Item Name="DEPTNO" DirtyInfo="true" Height="14" PromptAlign="Center" XPosition="14" Width="27" ColumnName="DEPTNO" DataType="Number" YPosition="39" PromptDisplayStyle="First Record" ItemsDisplay="0" MaximumLength="3" PromptAttachmentEdge="Top" ItemType="Text Item" TabPageName="" CanvasName="CANVAS4" Prompt="Deptno"/> <Item Name="DNAME" DirtyInfo="true" Height="14" PromptAlign="Center" XPosition="41" Width="101" ColumnName="DNAME" YPosition="39" Tooltip="Dep name goooes here." DataLengthSemantics="BYTE" Hint="Entter the department name" PromptDisplayStyle="First Record" ItemsDisplay="0" MaximumLength="14" PromptAttachmentEdge="Top" ItemType="Text Item" TabPageName="" CanvasName="CANVAS4" Prompt="Dname"/> <Item Name="LOC" DirtyInfo="true" Height="14" PromptAlign="Center" XPosition="142" Width="95" ColumnName="LOC" YPosition="39" DataLengthSemantics="BYTE" PromptDisplayStyle="First Record" ItemsDisplay="0" MaximumLength="13" PromptAttachmentEdge="Top" ItemType="Text Item" TabPageName="" CanvasName="CANVAS4" Prompt="Loc"/> <DataSourceColumn Type="Query" DSCType="NUMBER" DSCNochildren="false" DSCLength="0" DSCPrecision="2" DSCName="DEPTNO" DSCScale="0" DSCMandatory="false"/> <DataSourceColumn Type="Query" DSCType="VARCHAR2" DSCNochildren="false" DSCLength="14" DSCPrecision="0" DSCName="DNAME" DSCScale="0" DSCMandatory="false"/> <DataSourceColumn Type="Query" DSCType="VARCHAR2" DSCNochildren="false" DSCLength="13" DSCPrecision="0" DSCName="LOC" DSCScale="0" DSCMandatory="false"/> </Block> <Canvas Name="CANVAS4" ViewportHeight="324" DirtyInfo="true" Height="324" WindowName="WINDOW1" Width="540" ViewportWidth="540" CanvasType="Content"> <Graphics Name="FRAME5" GraphicsText="" FrameTitleOffset="14" Height="108" VerticalMargin="14" GraphicsFontColor="" GraphicsFontSpacing="Ultradense" Width="251" GraphicsFontSize="0" GraphicsFontWeight="Ultralight" StartPromptOffset="7" FillPattern="none" GraphicsFontColorCode="0" HorizontalObjectOffset="0" EdgeBackColor="white" FrameTitle="Departments" ShowScrollbar="true" RecordsDisplayCount="5" LayoutStyle="Tabular" DirtyInfo="true" XPosition="7" Bevel="Inset" GraphicsFontStyle="0" ScrollbarWidth="14" HorizontalMargin="7" FrameTitleSpacing="7" EdgePattern="solid" YPosition="15" GraphicsType="Frame" GraphicsFontName="" LayoutDataBlockName="DEPT"/> </Canvas> <ProgramUnit Name="ASK_FROM_USER" ProgramUnitType="Function" ProgramUnitText="FUNCTION ask_from_user RETURN BOOLEAN IS&#10; v_button number;&#10;BEGIN&#10; v_button := SHOW_ALERT('ALERT6');&#10; &#10; if v_button = ALERT_BUTTON2 THEN&#10; RETURN false;&#10; ELSE&#10; RETURN TRUE;&#10; END IF;&#10;END;"/> <Trigger Name="POST-DATABASE-COMMIT" TriggerText="/*&#10; Created by ABC de Silva&#10; <<<<<..>> &#10; testing for special characters < rock & roll &#10;*/&#10;BEGIN&#10; MESSAGE('*** Records successfully <<<> commmited to the DB. ***');&#10; PAUSE;&#10;END;" DirtyInfo="true"/> <Window Name="WINDOW1" Height="324" Width="540"/> </FormModule> </Module>
It's, I went through Google, nobody can give a complete solution. All are partial solutions.FORM_NAME ITEM_NAME ITEM_TYPE PROPERTY PROPERTY_VALUE ---------------------------------------------------------------------------------------------------------- D_e_p_a_r_t_m_e_n_t_s.fmb ALERT6 Alert Title Saving........................... <> D_e_p_a_r_t_m_e_n_t_s.fmb DEPTNO Text Item Prompt Dname D_e_p_a_r_t_m_e_n_t_s.fmb DEPTNO Text Item MaximumLength 3
Any help will greatly be apprectiated.
Published by: Channa on 30 Sep 2011 06:31Here goes:
select x1.item_name , x1.item_type , x2.property -- to convert back entities such as to their character values : , utl_i18n.unescape_reference(x2.property_value) as property_value -- parent information : , x1.parent_item_name , x1.parent_item_type from xmltable( xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def") , 'for $i in /Module/descendant::*[@def:Name] return element item { attribute item_name {data($i/@def:Name)} , attribute item_type {local-name($i)} , attribute parent_item_name {data($i/parent::*/@def:Name)} , attribute parent_item_type {local-name($i/parent::*)} , $i }' passing xmltype(bfilename('TEST_DIR','module2.xml'), nls_charset_id('AL32UTF8')) columns item_name varchar2(50) path '@item_name' , item_type varchar2(50) path '@item_type' , parent_item_name varchar2(50) path '@parent_item_name' , parent_item_type varchar2(50) path '@parent_item_type' , item xmltype path '.' ) x1 , xmltable( xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def") , 'for $i in /item/*/attribute::def:* let $propname := local-name($i) where $propname != "Name" return element p { element name {$propname} , element value {data($i)} }' passing x1.item columns property varchar2(50) path 'name' , property_value varchar2(500) path 'value' ) x2 ;
To make it easier, instead of calculating an ID, the information of the parent are given as (parent_name, parent_type).
Maybe you are looking for
-
If I work online and leave for a few hours and then go back and go open a new tab or even reload an existing tab or go to a new Web site using an already open tab, the only thing I get is the "circle of rotation of the dead." Then I have to exit out
-
Unable to boot after Windows update
Hello As is strives to update windows today, I wasn't expecting to lock up my computer, but now I am facing blue screen of death at every start. The Startup Repair tool is not help... So for now, the only option I see is to reformat my C drive? It wa
-
Would love to get rid of the 'Perspectives' and go back to the regular "Windows". How can I do?
-
Can not activate Photoshop CS6
Updated to win 10 yesterday, but before doing so I saw on the Adobe Web site to disable my software if you change the operating systems. Photoshop CS6 has been disabled and then upgraded the system to win 10. Connected to my Adobe account, open Photo
-
I have a Mac with OS X.10.5 I changed the hard drive. After the installation of the creative teams cloud and connected (my subscription is active) I have only the opportunity to use trial versions, why?