Creating a point geometry with coordinate transformation using JDBC
If I execute the following SQL statement using a tool such as TOAD then I get a correct value for the point in the oracle column.
INSERT INTO node (id, position) VALUES (53, SDO_CS.TRANSFORM(SDO_GEOMETRY(2001, 26910, SDO_POINT_TYPE(489535.0, 5457841.0, NULL), NULL, NULL), 4269))
Point geometry:
(2001, 4269, (-123.143865452971, 49.2732377100255, ), , )
If I execute the same statement using JDBC in a Statement or PreparedStatement the Point in the oracle column has 0,0 for the coordinates.
Point: geometry
(2001, 4269, (0, 0, ), , )
In both cases the SQL is exactly the same.
my JDBC code is
String insertSql = "INSERT INTO node (id, position) VALUES (" + id
+ ", SDO_CS.TRANSFORM(SDO_GEOMETRY(2001, " + geometrySrid
+ ", SDO_POINT_TYPE(" + coordinate2d.x + ", " + coordinate2d.y
+ ", NULL), NULL, NULL), " + srid + "))";
Statement insertStatement = connection.createStatement();
try {
insertStatement.execute(insertSql);
} finally {
JdbcUtils.closeStatement(insertStatement);
connection.commit();
Any ideas why this is happening?
I've tried to do the coordinate transformation in a separate call and pass in the STRUCT returned from that, using JGeometry to create a STRUCT for the value, using a WKT geometry and none of these approaches seem to work
Paul,
I have seen this work using JGeometry and STRUCT objects with PreparedStatements. Here's some sample code that seems to work just fine:
ResultSet rs = null;
try {
PreparedStatement ps =
getConn().prepareStatement("select SDO_CS.TRANSFORM(?, ?) from dual");
/* constucts JGeometry objects using simple points (doubles) and SRID
* Per the Javadoc, JGeometry objects can be constructed using the same
* notation and signature as SDO_GEOMETRY objects -
* JGeometry(int gtype, int srid, double x, double y, double z, int[] elemInfo, double[] ordinates) */
JGeometry j_geom1 = new JGeometry(-122.4, 37.8, 8265);
int newSRID = 4269;
//convert JGeometry instances to DB STRUCT
STRUCT obj1 = JGeometry.store(j_geom1, getConn());
ps.setObject(1, obj1);
ps.setInt(2, newSRID);
rs = ps.executeQuery();
while (rs.next()) {
//System.out.println(rs.getString(1));
STRUCT st = (oracle.sql.STRUCT) rs.getObject(1);
JGeometry j_geom = JGeometry.load(st);
System.out.println(j_geom);
ps.close();
rs.close();
conn.close();
} catch (Exception e) {
System.err.print(e);
Hope this helps.
-Justin
Similar Messages
-
Can we create Interactive forms only with ABAP & without using GP, or Java
Hi,
I would like to know if we can create Interactive forms only with ABAP & without using GP or Java. We want to develop an offline solution using Interactive forms, but would like to use only ABAP for creating the forms. All the documents so far either refer to creating the forms, in reference to / in sync with: ISR (Service Requests), GP (General Procedures) or Java. Can this be done with ABAP alone?
Regards,
Ramesh
Edited by: Ramesh Nallabelli on Apr 16, 2008 12:02 AMHello Ramesh,
You should be able to create Adobe Interactive Forms using only the ABAP stack (without GP, Java, etc). Please refer to the thread below. Hope it helps.
Re: help for-offline interactive forms based on sending receiving mails in ABAP
Regards,
Rao -
How to create PDF from Excel with Password Protection Using Visual Studio & Visual Basic
Could someone provide some VB code sample(s) to create a PDF file with password protection (Security Method - Password Security - Restrict Editing & Printing)?
I create a bunch of reports every week using an Excel 2010 addin that subsequently must be printed to PDF. I then have to manually edit the properties of each document in order to apply the printing restriction.
I'm using Acrobat X.
I've downloaded the SDK but have no idea which dll's to use or where to begin.
Thanks!
RossThat's surprising & disappointing. I would have thought that this capability would have long since been requested.
Thanks for the heads up. -
How to create a PDF document with page curls using Adobe CS 4?
My goal is to create a PDF document with page curls. I am using Adobe CS 4.
1. The document was created in Adobe InDesign CS 4 where the page turn (curl) transition was applied.
2. Then the document was exported to .swf.
3. The .swf file was imported into Adobe Acrobat Pro to create a PDF file with flip page or page curl transitions.
These are the problems.
1. The background is not transparent.
2. Page dimensions have to be increased at least an inch in width and length so that the full page can show
3. The command and+ will not only increases the document's screen size. It increases the page margins.PDF was never designed to support the Flash page curl effect (it didn't exist back then). Anything you try (and you've tried the standard hack) will look like a hack. Personally, I don't think the effort is worth it for an effect that's much overused.
-
About creating an AJAX page with DML procedures using dynamic actions
About creating an AJAX page with DML procedures in APEX using dynamic actions. Help with limitations.
I want to share my experience, creating AJAX procedures in APEX 4.0.
LIMITATIONS
• How Can I Hide UPDATE button while I press NEW button. ??
• How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
• How can I avoid multiple Inserts or Updates. ??
Here are the steps to create an AJAX Updatable Form using the sample table DEPTS. You can see the demo here: [http://apex.oracle.com/pls/apex/f?p=15488:1]
1) Create a blank page
2) Add a Report Region for departments (It shows the columns deptno, dname and loc).
3) Add an HTML Region and create the elements to edit a Department.
a. P1_DEPTNO (Hidden to store PK)
b. P1_DNAME (Text Field)
c. P1_LOC (Text Field)
4) You also have to create a hidden element called P1_ACTION. This will help to trigger dynamic actions to perform DMLs.
5) Open Page Attributes and in the HTML Header Section include the following code.
<script>
function doSelect(pId){
$x_Value(‘P1_DEPTNO’,pId);
$x_Value(‘P1_ACTION’,’SELECT’);
</script>
6) Modify the column DEPTNO in the report, to add column link. In the link text you can use #DEPTNO# , in target you must select ‘URL ‘ and in the URL field write javascript:doSelect(#DEPTNO#);
7) Create the following Buttons in the Form Region.
CANCEL Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CANCEL’);
NEW Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’NEW’);
SAVE Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’UPDATE’);
CREATE Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CREATE’);
8) Create the following Dynamic Action to Select a Department
Name: Select Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: SELECT
Action: Execute PL/SQL Code
PL/SQL Code:
SELECT dname, loc
INTO :P1_DNAME, :P1_LOC
FROM dept
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
The first limitation, the value of page elements don’t do refresh so I added the following true actions to the dynamic action AFTER Execute PL/SQL Code.
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: (none) (leave it blank)
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: (none) (leave it blank)
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
9) Create the following Dynamic Action to Update a Department
Name: Update Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: CREATE
Action: Execute PL/SQL Code
PL/SQL Code:
UPDATE dept SET
dname = :P1_DNAME,
loc = :P1_LOC
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
Action: Set Value
Unmark ‘Fire on page load’ and ‘Stop execution on error’
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: P1_DNAME
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: P1_LOC
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
Finally to refresh the Departments report, add the following true action at the end
Action: Refresh
Affected Elements: Region Departments
10) Create the following Dynamic Action to Create a Department
Name: Create Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: CREATE
Action: Execute PL/SQL Code
PL/SQL Code:
INSERT INTO dept(deptno,dname,loc)
VALUES (:P1_DEPTNO,:P1_DNAME,:P1_LOC);
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Function Body
PL/SQL Function Body:
DECLARE
v_pk NUMBER;
BEGIN
SELECT DEPT_SEQ.nextval INTO v_pk FROM DUAL;; -- or any other existing sequence
RETURN v_pk;
END;
Page Items to submit: P1_DEPTNO
Affected Elements: Item P1_DEPTNO
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: P1_DNAME
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark ‘Fire on page load’ and ‘Stop execution on error’
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: P1_LOC
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
Finally to refresh the Departments report, add the following true action at the end
Action: Refresh
Affected Elements: Region Departments
11) Create the following Dynamic Action to delete a department
Name: Delete Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: DELETE
Action: Execute PL/SQL Code
PL/SQL Code:
DELETE dept
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO
Don’t include any false action and create the Dynamic Action.
Include the following True Actions AFTER the Execute PL/SQL Code true Action.
Action: Refresh
Affected Elements: Region Departments
Action: Clear
Unmark ‘Fire on page load’
Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOC
12) Finally Create the following Dynamic Action for the NEW event
Name: New Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: NEW
Action: Clear
Unmark *‘Fire on page load’*
Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOCI need some help to solve this issues
• How Can I Hide UPDATE button while I press NEW button. ??
• How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
• How can I avoid multiple Inserts or Updates. ?? -
How to create a tree structure with check boxs using Windows Activex Control?
Hi,
I am very new to LabVIEW. I am trying to create a tree structure with Check Boxes like the below. It would be great if someone would show me a right direction to go forward.
The aim is to select the item and one by one i have to get the Path and give as an input to by application VI.
Thanks and Best Regards
PrathapHi Andy,
Sorry i pasted the Picture.. Pls find the attached picture.
Following are my requirement:
1) I need to populate a tree given a root directory, listing all the Folders and file of cetain pattern(*.pjt... ther will be only one *.pjt in every subfolders).
2) I need a check box for every *.pjt to select the its path. The list of pjt files selected are used for my automation test suit.
Pls let me know if you need more info.
Best Regards
Prathap
Attachments:
tree.JPG 73 KB -
Create procedure/functions under Custom Public Transformations using OMB
Hello,
I need to create a global procedure under Public Transformations. How do i do so?
I am able to create them under specific projects, but not as global.
I tried creating it after OMBCC 'PUBLIC_PROJECT' , but it says i need to change my context...
Can some one please help me with this.
Thanks in advance..check these links for references.
http://download.oracle.com/docs/cd/B31080_01/doc/owb.102/b28225/omb_appendix.htm
http://mis3nt.gsnu.ac.kr/PublicData/Oracle11gDoc/owb.111/b31279/omb_appendix.htm -
NCHAR issue with oracle database using JDBC adapter
Hi,
We have a requirement to develop an XI interface from FTP server(File adapter) to oracle database using JDBC adapter. In the oracle database table few fields are of type NCHAR/NVARCHAR. when we try to insert the character(A,B,c..) values into oracle table fields of type NCHAR/NVARCHAR, we are getting the following error message in the JDBC adapter audit log. IF we pass the numeric value to the same field, then we are able to insert the records successfully.
Unable to execute statement for table or stored procedure. 'IPCSDD_DOWNLOAD_PROCESS' (Structure 'StatementName1') due to java.sql.SQLException: ORA-00904: "P": invalid identifier
2010-10-19 22:29:59 Error JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'IPCSDD_DOWNLOAD_PROCESS' (structure 'StatementName1'): java.sql.SQLException: ORA-00904: "P": invalid identifier
2010-10-19 22:29:59 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'IPCSDD_DOWNLOAD_PROCESS' (structure 'StatementName1'): java.sql.SQLException: ORA-00904: "P": invalid identifier
Please find the system information below.
Oracle version- 10.2.4
XI version - 3.0/ service pack 19
JDBC driver- oracle.jdbc.driver.OracleDriver
Please suggest.
Thanks,
Venkata
Edited by: Venkata Narayana Eepuri on Oct 21, 2010 12:10 AMDear Venkata Narayana,
Concerning the error, kindly go through the following note :
731 - Collective note: ORA-00904
follow the recommendations mentioned in that and please check if that helps.
Best Regards
Nishwanth -
Create a followup document with selected items using actions
Hi Experts,
We are working on CRM 5.0 with ECC 6.0 as backend.
As per the clients business process we have to create a service order automatically from a sales order whenever there is a serviceline item with item category ZSRV presents in the sales order. The service order which is created should only contain service line item with item category ZSRV. Which means the action should copy only the selected line items to the service order.
Now the problem is using the standard method COPY_DOCUMENT, I dont have any option for selecting the line items. I have found a method COPY_DEF_ITEMS which may be the most relavant for my scenario. But I am not able to give the processing parameters for this.
Can any body help me about how to use the standard method COPY_DEF_ITEMS.
Points shall be rewarded for the helpful answer.
Regards,
MadhuPDF was never designed to support the Flash page curl effect (it didn't exist back then). Anything you try (and you've tried the standard hack) will look like a hack. Personally, I don't think the effort is worth it for an effect that's much overused.
-
Null Pointer Exception with Oracle Transformer
Hi all,
I'm getting a NullPointerException after building a DOM tree and feeding it to a stream via the Oracle JAXP transformer. I am trying to convert the data in DOMSource to PDF file. The following code:
TransformerFactory transFact = TransformerFactory.newInstance();
Transformer transForm = transFact.newTransformer();
ByteArrayOutputStream pdfOutStream = new ByteArrayOutputStream();
DOMSource pdfInput = new DOMSource(doc);
StreamResult pdfOutput = new StreamResult(pdfOutStream);
transForm.transform(pdfInput,pdfOutput);
int pdfByteSize = pdfOutStream.size();
System.out.println("Size of pdfByteSize : "+ pdfByteSize);
pdfByte = new byte[pdfByteSize];
pdfByte = pdfOutStream.toByteArray();
InputStream formInputStream = new ByteArrayInputStream(pdfByte);
Iam getting error at "transForm.transform(pdfInput,pdfOutput);".
Here the StackTrace :
07/05/24 10:59:40 XML-22900: (Fatal Error) An internal error condition occurred.
javax.xml.transform.TransformerException: XML-22900: (Fatal Error) An internal error condition occurred.
at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:775)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:374)
Caused by: java.lang.NullPointerException
at oracle.xml.parser.v2.XMLText.reportSAXEvents(XMLText.java:402)
at oracle.xml.parser.v2.XMLElement.reportChildSAXEvents(XMLElement.java:3072)
at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:3061)
at oracle.xml.parser.v2.XMLElement.reportChildSAXEvents(XMLElement.java:3072)
at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:3061)
at oracle.xml.parser.v2.XMLElement.reportChildSAXEvents(XMLElement.java:3072)
at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:2165)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:337)
Environment we are using is Sun JDK 1.4.2_06 on Windows, running JDeveloper 10 g with OC4j as Application Server.
Can any one please explain me in this regard?
Thanks
ManojThanks for the Reply.
Before Null Pointer Exception I am getting another Fatal error:
javax.xml.transform.TransformerException: XML-22900: (Fatal Error) An internal error condition occurred.
at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:775)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:374)
Please Help -
Creating a new project with custom fields using web services
I've been trying unsuccessfully for the last week or so to successfully create a new project from web services and I believe the main problem that I've been running into is that one of the required fields is a custom field. I've tried creating the Project
in a couple of different ways and haven't had any success up to this point, so any help would be appreciated. I've tried creating it with both a REST call to /_api/ProjectServer/Projects and a SOAP call to /_vti_bin/PSI/Project.asmx. Below are the best shots
I've made at the two different calls with the errors I received. If anyone has any leads on the best way to do this the help would be appreciated!
REST POST /_api/ProjectServer/Projects
'odata.type' : 'PS.PublishedProject',
'Name' : 'OData Name',
'Custom_9d77d62aa92e4d40adc8446c90eb7456' : "O&M"
Response
error: {
code: "11713, Microsoft.ProjectServer.PJClientCallableException"
message: {
lang: "en-US"
value: "PJClientCallableException: CustomFieldRequiredValueNotProvided CustomFieldRequiredValueNotProvided mdpropuid = 9d77d62a-a92e-4d40-adc8-446c90eb7456"
SOAP POST /_vti_bin/PSI/Project.asmx
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:proj="http://schemas.microsoft.com/office/project/server/webservices/Project/" xmlns:projds="http://schemas.microsoft.com/office/project/server/webservices/ProjectDataSet/">
<soapenv:Header />
<soapenv:Body>
<proj:QueueCreateProject>
<proj:dataset>
<ProjectDataSet xmlns="http://schemas.microsoft.com/office/project/server/webservices/ProjectDataSet/">
<Project>
<PROJ_UID>e1c2d38b-1529-4128-b707-42a94045e55b</PROJ_UID>
<PROJ_NAME>Proj Dept Test 2</PROJ_NAME>
<PROJ_TYPE>0</PROJ_TYPE>
</Project>
<ProjectCustomFields>
<CUSTOM_FIELD_UID>4802a711-62a0-4f84-8e08-c7d22daadb5b</CUSTOM_FIELD_UID>
<PROJ_UID>e1c2d38b-1529-4128-b707-42a94045e55b</PROJ_UID>
<MD_PROP_UID>9d77d62a-a92e-4d40-adc8-446c90eb7456</MD_PROP_UID>
<FIELD_TYPE_ENUM>21</FIELD_TYPE_ENUM>
<CODE_VALUE>a47930d6-b89d-4f3a-b4e3-522015fe82a1</CODE_VALUE>
</ProjectCustomFields>
</ProjectDataSet>
</proj:dataset>
<proj:validateOnly>true</proj:validateOnly>
</proj:QueueCreateProject>
</soapenv:Body>
</soapenv:Envelope>
Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode>s:Server</faultcode>
<faultstring xml:lang="en-US">ProjectServerError(s) LastError=GeneralUnhandledException Instructions: Pass this into PSClientError constructor to access all error information</faultstring>
<detail>
<errinfo>
<general>
<class name="General Unhandled Exception in _Project.QueueCreateProject_">
<error id="42" name="GeneralUnhandledException" uid="184feeaf-906a-e411-9b2a-00155d388b02" Exception="System.Data.StrongTypingException: The value for column 'PROJ_TYPE' in table 'Project' is DBNull. ---> System.InvalidCastException: Specified cast is not valid.
at Microsoft.Office.Project.Server.Schema.ProjectDataSet.ProjectRow.get_PROJ_TYPE()
--- End of inner exception stack trace ---
at Microsoft.Office.Project.Server.Schema.ProjectDataSet.ProjectRow.get_PROJ_TYPE()
at Microsoft.Office.Project.Server.BusinessLayer.Project.FixupProjectType(ProjectDataSet projDS)
at Microsoft.Office.Project.Server.BusinessLayer.Project.QueueCreateProject(Guid jobUid, ProjectDataSet dataset, Boolean validateOnly)
at Microsoft.Office.Project.Server.Wcf.Implementation.ProjectImpl.<>c__DisplayClasse.<QueueCreateProject>b__d()
at Microsoft.Office.Project.Server.Wcf.Implementation.WcfMethodInvocation.InvokeBusinessObjectMethod(String businessObjectName, String methodName, IEnumerable`1 actions)"/>
</class>
</general>
</errinfo>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>Julie,
You can create the fields that are project specifc & you can create fields that apply to all projects but have specific options for projects. Your goal is to create fields that are specific to each project, but right now you get all fields from you old project - is this correct?
From your description below it appears that the fields in your original project are marked as applied to all projects & hence when you create a new project they are inherited. If you mark those fields as applied to certain project & then create a new project those fields will not be inherited.
But you are right in the sense that it is limiting that there is no multi-select for "applies to" field. -
Hi,
My requirement is to create a document library associated to a custom content type with a document template associated. Also I need to create a document based on the template in this document library when a new item is created in another list by taking the
reference ID of that new Item , I need to create the document with the name appended by ID. I need to do all this deployment using WSP.
I have created document library with document template associated to content type by following instructions in below stated blog :http://blogs.msdn.com/b/chaks/archive/2011/05/19/deploying-a-document-template-file-in-content-type-in-a-office365-sandboxed-solution.aspx
This works perfect for me.
However, there are few observations, when going to Document Library > Library Settings > Advanced Settings > Document Template section - doesnt shows the Edit template link. When tried to look at the value for the document template using view source
, it is giving me /Lists/MyDocsListInstance/Forms/template.dotx instead of the actual template file uploaded.
Ignoring the above observation, when I am trying to create a sandbox based workflow in visual studio to create document in document library when new item is created in another list, I provide the ContentTypeID as the ID associated with the document library
with template.
It creates the corrupt document at end of workflow.
I have tried using .docx instead of .dotx files for workflow as per solution provided in some of the post but it isnt resolving my issue.
Any help is much appreciated.
Regards,
KrutikaOK, I am going to throw out a lot of ideas here so hopefully they get you closer to a diagnosis. Hang on :)
Does it happen to work for some users but not others? If so, try logging in on the "good" computer with the "bad" username. This will tell you if the problem is related to the end-user's system. Also, once the user downloads a document
successfully can they open and work on it in Word? Also, does the document library have any custom content types associated with it or does it just use 'Document'?
I notice that there are other folks on the web that have run into this same problem and the similarity seems to be that they are either on SharePoint 2007 or have upgraded from 2007. Did this doc library start out as a 2007 library?
What you might want to do is this: Make a site collection from scratch in 2013 (or find one that you know was created in 2013). Choose team site (or whatever you want) for the root web and set up the security the same way you have it on the malfunctioning
library. Now, use windows explorer to copy and paste some of the documents to the new location. Be sure you recreate any needed content types. Now test it from the troubled user's computer.
I'm thinking there may be something that is different about the library since it was migrated through various versions and updates since 2007. I've sometimes found that there can be problems (especially with user profiles but that's a different story) with
things that go through this evolution. -
Creating AIR/Web Apps. with XML & E4X using AS3
Needing tips using AS3 with XML/E4X to make my project work over the server:
1) Here I'm having trouble trying to create a component with a 'GOOGLE MAP' with the user being able to input their location for directions with once submitting the get directions button that it generates the directions in the datagrid automatically.
2) Including a 'DATAGRID' for customers to be able to retain their info in a datagrid that has been updated by office personnel from an 'AIR APPLICATION' with a XML file that holds the customers info
/**the Component*/
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:s="library://ns.adobe.com/flex/spark" width="1400" backgroundColor="#666666" xmlns:mx2="library://ns.adobe.com/flex/mx" creationComplete="initApp(event)">
<mx:Style source="map_1.css"/>
<mx:XML id="customer_info.xml" source="Assets/customer_info.xml" />
<mx:Script>
<![CDATA[
/**Google Map Code API:http://code.google.com/apis/maps/documentation/flash/tutorial-flexbuilder.html#DeclaringMa ps_&
_http://www.adobe.com/devnet/flex/articles/googlemaps_api.html */
import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
private function onMapReady(event:Event):void {
this.map.setCenter(new LatLng(31.683952973286058, -97.09904551506042), 14, MapType.NORMAL_MAP_TYPE);
click="processForm(event);"
private function processForm(event:Event):void { trace(from.text + " " + to.text); }
[Bindable]
public var directionsSteps:ArrayCollection = new ArrayCollection();
dataProvider="{directionsSteps}"
var directions:Directions = new Directions(); directions.addEventListener(DirectionsEvent.DIRECTIONS_SUCCESS, onDirectionsSuccess);
directions.addEventListener(DirectionsEvent.DIRECTIONS_FAILURE, onDirectionsFail);directions.load("from: " + from.text + " to: " + to.text);
Alert.show("Status:" + event.directions.status);
map.clearOverlays(); var directions:Directions = event.directions; var directionsPolyline:IPolyline = directions.createPolyline(); map.addOverlay(directionsPolyline);
var directionsBounds:LatLngBounds = directionsPolyline.getLatLngBounds(); map.setCenter(directionsBounds.getCenter()); map.setZoom(map.getBoundsZoomLevel(directionsBounds));
var startLatLng:LatLng = dir.getRoute(0).getStep(0).latLng;
var endLatLng:LatLng = dir.getRoute(directions.numRoutes-1).endLatLng; map.addOverlay(new Marker(startLatLng)); map.addOverlay(new Marker(endLatLng));
for (var r:Number = 0 ; r < directions.numRoutes; r++ ) { var route:Route = directions.getRoute(r); for (var s:Number = 0 ; s < route.numSteps; s++ )
{ var step:Step = route.getStep(s); directionsSteps.addItem(step);
directionsSteps.removeAll();
itemClick="onGridClick(event)"
privatefunction onGridClick(event:Event):void { var latLng:LatLng = directionsGrid.selectedItem.latLng;
var opts:InfoWindowOptions = new InfoWindowOptions(); opts.contentHTML = directionsGrid.selectedItem.descriptionHtml; map.openInfoWindow(latLng, opts);
var ServerPath:String = "http://www.sometext.com/";
var ServerPage:String = serverPath + "getCountries";
dataProvider="{directionsSteps}"
var directions:Directions = new Directions(); directions.addEventListener(DirectionsEvent.DIRECTIONS_SUCCESS, onDirectionsSuccess); directions.addEventListener(DirectionsEvent.DIRECTIONS_FAILURE, onDirectionsFail);
directions.load("from: " + from.text + " to: " + to.text);
Alert.show("Status:" + event.directions.status);
map.clearOverlays(); var directions:Directions = event.directions; var directionsPolyline:IPolyline = directions.createPolyline();
map.addOverlay(directionsPolyline);
var directionsBounds:LatLngBounds = directionsPolyline.getLatLngBounds(); map.setCenter(directionsBounds.getCenter());
map.setZoom(map.getBoundsZoomLevel(directionsBounds));
var startLatLng:LatLng = dir.getRoute(0).getStep(0).latLng; var endLatLng:LatLng = dir.getRoute(directions.numRoutes-1).endLatLng; map.addOverlay(new Marker(startLatLng));
map.addOverlay(new Marker(endLatLng));
for (var r:Number = 0 ; r < directions.numRoutes; r++ ) { var route:Route = directions.getRoute(r); for (var s:Number = 0 ; s < route.numSteps; s++ )
{ var step:Step = route.getStep(s); directionsSteps.addItem(step); } }
directionsSteps.removeAll();
itemClick="onGridClick(event)"
import flash.events.IOErrorEvent;
import flash.events.SecurityErrorEvent;
var sender:URLLoader;
var sendPage:URLRequest;
var sendVars:URLVariables;
initApp;
function initApp:void {
var ServerPath:String = "http://localhost/silverfoxcc/";
var url:String = serverPath + "login.aspx";
sender = new URLLoader();
sendPage = new URLRequest(url);
sendPage.method = URLRequest.POST;
sendvars = new URLVariables();
SUBMIT.btn.addEventListener(MouseEvent.CLICK, clickHandler);
sender.addEventListener(Event.COMPLETE, completeHandler);
sender.addEventListener(IOErrorEvent.SECURITY_ERROR, securityErrorhandler);
function clickhandler(e:MouseEvent:void{
var suppSUBMIT:String = username_txt.text;
var suppRESET:String = reset_txt.text;
if (suppSUBMIT.length > 0 && suppRESET.length > 0) {
message_txt.text = "";
sendVars.submit = suppSUBMIT;
sendVars.reset = suppRESET;
sendPage.data = sendVars;
sender.load(sendPage);
else{
message_txt.text ="You must enter a last name and customer identification before clicking the submit button."
function completeHandler(e:Event):void{
var xmlResponse:XML = XML(e.target.data;
var userMessage:String;
if (xmlResponse.text().toString() == "true") {
userMessage = "Congratulations, information is retrieved"'';
else {
usermessage = "Information to be retrieved failed. Please try again";
message_txt.text =userMessage;
function ioErrorHandler(e:IOErrorEvent):void{
message_txt.text = e.text;
function securityErrorHandler(e:SecurityErrorEvent):void {
message_txt.text = e.text;
/**Foundation for Ed: XML & E4X-Chapter 9: COMMUNICATION WITH THE SERVER*/
import mx.events.FlexEvent;
import xmlUtilities.XMLLoader;
import flash.events.IOErrorEvent;
import flash.events.SecurityErrorEvent
private var serverPath:String = "http://localhost/FOE/";
private function initApp(e:FlexEvent):void {
myXMLLoader = new XMLLoader();
myXMLLoader.addEventListener(Event.COMPLETE, completeHandler);
myXMLLoader.addEventListener(IOErrorEvent.IO_Error, IOErrorHandler);
SUBMIT.btn.addEventListener(MouseEvent.CLICK, clickHandler);
private function completeHandler(e:Event):void{
var userMessage:String;
var response:String =myXMLLoader.response().toString();
if (response:String = myXMLLoader.response().toString();
if (response == true"){
usermessage = "Congratualtions. You were successful";
else{
userMessage = Login failed. Please try again";
message_txt.text = userMessage;
private function clickHandler(e:MouseEvent):void{
var SUBMIT:String = submit_txt.text;
var RESET:String = reset_txt.text;
vars myVars:URLVariables = new URLVariables();
if (username.length > 0 && password.length > 0) {
myVars.SUBMIT = submit;
myVars.CUSTMER ID = customerid;
myXMLLOADER.loafxml("login.aspx, myVars);
else {
message_txt.text = "You must enter a last name and customer id before clicking the submit button"
private function IOErrorHandler(e:IOErrorEvent):void{
message_txt.text = e.text;
private function securityErrorHandler(e:SecurityErrorEvent):void{
message_txt.text = e.text;
/**Foundation for Ed: XML & E4X-Chapter 8: MODIFYING XML CONTENT WITH ACTIONSCRIPT 3.0*/
import mx.events.FlexEvent;
import mx.events.ListEvent;
import mx.collections.XMLListCollection;
import xmlUtilities.MyXMLLoaderHelper;
import mx.events.FlexEvent;
import mx.events.DataGridEvent;
private function initApp(e:Event):void {
/add testing lines here
private var myXMLLoader:MyXMLLoaderHelper;
private function initApp(e:FlexEvent):void {
myXMLLoader = new MyXMLLoaderHelper();
myXMLLoader.addEventListener(Event.COMPLETE, completeHandler);
myXMLLoader.addEventListener("xmlUpdated", xmlUpdatedHandler);
authors_cbo.addEventListener(ListEvent.CHANGE, changeHandler);
addRow_btn.addEventListener(MouseEvent.CLICK, addClickHandler);
delete_btn.addEventListener(MouseEvent.CLICK, deleteClickHandler);
books_dg.addEventListener(DataGridEvent.ITEM_EDIT_END, itemEditEndHandler);
authors_cbo.labelFunction = getFullName;
myXMLLoader.loadXML("Assets/customer_info.xml", "lastname");
private function completeHandler(e:Event):void {
authors_cbo.dataProvider = myXMLLoader.getChildElements("author");
tree_txt.text = myXMLLoader.getXML().toXMLString();
books_dg.dataProvider = myXMLLoader.getBooks(0);
private function getFullName(item:Object):String {
return item.authorFirstName + " " + item.customerLastName;
private function changeHandler(e:Event):void {
books_dg.dataProvider = myXMLLoader.getBooks(e.target.selectedIndex);
private function addClickHandler(e:MouseEvent):void {
var newBookName:String = name_txt.text;
var newPublishYear:String = year_txt.text;
var newBookCost:String = cost_txt.text;
var authorIndex:int = authors_cbo.selectedIndex;
if(newBookName.length > 0 && newPublishYear.length > 0 && newBookCost.length > 0) {
myXMLLoader.addBook(authorIndex, newBookName, newPublishYear, newBookCost);
private function deleteClickHandler(e:MouseEvent):void {
var bookIndex:int = books_dg.selectedIndex;
var authorIndex:int = authors_cbo.selectedIndex;;
if (books_dg.selectedIndex != -1) {
myXMLLoader.deleteBook(authorIndex, bookIndex);
private function itemEditEndHandler(e:DataGridEvent):void {
var authorIndex:int = authors_cbo.selectedIndex;
var dg:DataGrid = e.target as DataGrid;
var field:String = e.dataField;
var row:int = e.rowIndex;
var col:int = e.columnIndex;
var oldVal:String = e.itemRenderer.data[field];
var newVal:String = dg.itemEditorInstance[dg.columns[col].editorDataField];
if (oldVal != newVal) {
myXMLLoader.modifyXMLTree(authorIndex, dg.columns[col].dataField, row, newVal)
private function xmlUpdatedHandler(e:Event):void {
books_dg.dataProvider = myXMLLoader.getBooks(authors_cbo.selectedIndex);
tree_txt.text = myXMLLoader.getXML().toXMLString();
]]>
</mx:Script>
<s:Panel x="9" y="257" width="459" height="383" contentBackgroundColor="#666666" backgroundColor="#666666" chromeColor="#FCF6F6" title="DIRECTIONS TO SILVER FOX COLLISION CENTER:" fontSize="14">
<s:TextInput x="55" y="7" contentBackgroundColor="#030000" height="17" width="392"/>
<mx:Label x="3" y="6" text="FROM:" fontSize="14" color="#FDF9F9"/>
<s:TextInput x="1114" y="637" contentBackgroundColor="#FCF7F7" height="17" width="213"/>
<s:Button x="1337" y="634" label="GET DIRECTIONS" focusColor="#FBFCFD" chromeColor="#666666" color="#FEFEFE" width="141" fontSize="14"/>
<mx:Label x="1088" y="637" text="TO:" fontSize="12" color="#FDFBFB"/>
<s:Button x="295" y="56" label="GET DIRECTIONS" focusColor="#FBFCFD" chromeColor="#666666" color="#FEFEFE" width="157" fontSize="12"/>
<s:TextInput x="55" y="31" contentBackgroundColor="#070000" height="17" width="392"/>
<mx:Label x="25" y="30" text="TO:" fontSize="14" color="#FDFBFB"/>
</s:Panel>
<mx2:DataGrid x="10" y="54" width="458" height="104" color="#666666" contentBackgroundColor="#060000" borderColor="#030000" fontSize="8" focusColor="#666666" chromeColor="#030000" selectionColor="#666666" dropShadowVisible="true" rollOverColor="#FFFFFF">
<mx2:columns>
<mx2:DataGridColumn headerText="LAST NAME:" dataField="col1"/>
<mx2:DataGridColumn headerText="DESIGNATED DUE DATE:" dataField="col2"/>
<mx2:DataGridColumn headerText="STATUS UPDATED:" dataField="col3"/>
<mx2:DataGridColumn headerText="CUSTOMER ID:" dataField="col3"/>
</mx2:columns>
</mx2:DataGrid>
<mx:Text id="directionsSummary" width="100%"/> <mx:DataGrid id="directionsGrid" dataProvider="{directionsSteps}" width="100%" height="100%" sortableColumns="false" />
<mx:Text id="directionsCopyright" width="100%"/>
<mx:HBox> <mx:Label text="From: " width="70"/> <mx:TextInput id="from" text="San Francisco, CA" width="100%"/> </mx:HBox>
<mx:HBox> <mx:Label text="To: " width="70"/> <mx:TextInput id="to" text="Mountain View, CA" width="100%"/> </mx:HBox>
<s:Label x="11" y="38" text="LAST NAME:" color="#FCFBFB" fontSize="14" verticalAlign="top"/>
<s:TextArea x="96" y="32" width="145" height="18" focusColor="#FCFAFA" color="#010000" contentBackgroundColor="#000000" id="message_txt" text="{xmlService.lastResult.toString()}>
<s:Label x="273" y="37" text="CUSTOMER ID;" fontSize="14" color="#FDFBFB"/>
<s:TextInput x="376" y="32" width="89" height="18" focusColor="#FCF9F9" color="#FAF8F8" contentBackgroundColor="#040000"/>
<s:Button x="318" y="212" label="RESET" focusColor="#F8FAFB" color="#FEFBFB" chromeColor="#666666" fontSize="12"/>
<s:Button x="393" y="212" label="SUBMIT" focusColor="#F8F9FA" color="#FFFBFB" chromeColor="#666666" fontSize="12"/>
<s:TextArea x="10" y="160" width="458" height="48" color="#FEF8F8" contentBackgroundColor="#050000"/>
<mx:Panel x="483" y="31" width="750" height="609" layout="absolute" backgroundColor="#666666" borderVisible="true" dropShadowVisible="true" chromeColor="#FDF9F9">
<mx:VBox x="26" y="7" height="559" width="708">
<maps:Map xmlns:maps="com.google.maps.*" id="map" mapevent_mapready="onMapReady(event)" x="500" y="25" width="700" height="550" key="ABQIAAAA9YXHa-b0xqHBMiooUNYUbhRpa9TAnukyOWjhoGl3Y9H2BJoi9xSrm6cnM0lBZ4lCtqRLxKpQK_eb Rg" sensor="true"/>
</mx:VBox>
</mx:Panel>
</mx:Application>
/**the AIR APPLICATION*/
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" backgroundColor="#666666" width="854" height="348" creationComplete="initApp(event)">
<s:HTTPService id="customer_info" url="data/customer_info.xml" resultFormat="e4x" result="resultHandler(event)"/>
<mx:Script>
<![CDATA[
/**FLEX 4 Bible: Chapter 24- Managing XML w/ E4X*/
private var xmlData:XML;
private function resultHandler(event:ResultEvent):void
xmlData = event.result as XML:
]]>
</mx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:Image source="@Embed('Assets/logo.png')" x="1" y="0" width="760" height="168"/>
<s:Label x="96" y="126" text="Last Name:
" color="#FFFFFF" fontSize="20" fontFamily="Times New Roman"/>
<s:Label x="13" y="218" text="Designated Due Date:
" fontSize="20" fontFamily="Times New Roman" color="#FBF8F8"/>
<s:Label x="63" y="186" text="Status Updated:
" color="#FCF5F5" fontSize="20" fontFamily="Times New Roman"/>
<s:TextInput x="192" y="125" width="196"/>
<s:TextInput x="193" y="215" width="195"/>
<s:TextInput x="193" y="185" width="195"/>
<s:Label x="80" y="158" text="Customer ID:" color="#FDFCFC" fontSize="20" fontFamily="Times New Roman"/>
<s:TextInput x="192" y="155" width="196"/>
<s:Button x="243" y="241" label="RESET"/>
<s:Button x="317" y="241" label="UPDATE" focusColor="#666666"/>
</s:WindowedApplication>
/**the Customer Information XML*/
<?xml version="1.0" encoding="utf-8"?>
<allNames>
<name namesID="1">
<nameLastName>Ambrose</nameLastName>
<customerids>
<customerid customerID="1">
<customerID>777777</customerID>
</customerid>
</customerids>Hi All,
please note that we found the problem. The problem was that we didn't configure under:
"Configuration-> Security -> Message Security -> SOAP" the voprrect provider to handle the security.
After that was done (extract of domain.xml) the message was understood.
<provider-config class-name="com.sun.identity.agents.jsr196.as9soap.AMServerAuthModule" provider-id="AMServerProvider-UserNameToken-Plain" provider-type="server">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="providername" value="UserNameToken-Plain"/>
</provider-config>unfortunately the next problem occured I will post in a new thread.
Edited by: rankin_ut on Jan 26, 2009 4:43 AM -
Created letter head templates with pages-open using in WORD HOW?
please help.. i created beautiful letter head templates with iwork pages and i am trying to give to my employee to use it ... and then they can't import or open use from microsoft Word 2011. they do not have iwork.. possible can share templates both pages and microsoft word? is there way to do it? all the letter logo reflextion effect that i sed from iwork dont seem work in microsoft word. ;(
or it is not possible?
not everyone in my office has iwork and i want them to use same letter head i creadted from pages.. so that they can use it from thier PC.
anyone can help me?Do you mean template or document? They're not the same thing.
The template formats that Microsoft and Apple use are different (just like all their document formats). You can Export a Pages document in a Word format and send this to your employees. An employee can then save this Word document as a Word template and use it. -
I cant erase my air ssd, always create about 5G used extended partition..
Try booting the fallback kernel, there is a problem with the AHCI driver concerning new Macbooks. When you've booted, add ata_generic to the modules in /etc/mkinitcpio.conf and rebuild the initrd with mkinitcpio -p kernel26.
Maybe you are looking for
-
PI Pipeline Doubt : Pipeline Steps in ABAP stack and JAVA stack
Hello Can anyone please assist me with which stages steps of the PI Pipeline are executed on the Java or the ABAP stack. Receiver Determination Interface Determination Message Split Message Mapping Technical routing Call Adapter Also can anyone pleas
-
ABAP debugger - Memory monitoring
When in a debugging mode, go to menu ---> Settings -> Memory monitoring (turn on this setting). However, since this feature is turned on, where do I get the result of the trace?
-
Adobe reader 9.3 won't install
I get a message that says can't find network or website unable to install
-
Can't Get To Front Row...
Help! I know my Remote is working because pushing play/pause will start/stop an iTunes song. But when I press Menu, it will not bring up Front Row. I checked my mouse/keyboard shortcuts as well, and it's set to bring up Front Row with Command + Escap
-
Missing Stack/Version Set opt. when "move to removable" with album
I'm using windows XP and I occasionally move pictures to a DVD and retain thumbnails for organization. If I use picture that DO NOT belong to an album and do a "copy/move to removable disk" I get three options (move, stacks, versions). If I use a pic