How to create a text file or XML file and add content through code into it...
Hi Everyone,
How to create a text file and add content through the code to the text file eform javascript ......orelse can we create a text file in life cycle designer...
Else say how to create a new XML file through the code and how some content like Example "Hello World".
You can create a text file as a file attachment (data object) using the doc.createDataObject and doc.setDataObjectContents:
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.450.html
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.528.html
You can then export the file with the doc.exportDataObject method:
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.463.html
This won't work with Reader if it hasn't been given the file attachment usage right with LiveCycle Reader Extensions.
Similar Messages
-
How to create a text field box that saves and reveals content within PDF?
I cannot seem to find a way (at least within Indesign) to allow users to enter content, and then to later have that content revealed within the PDF at a later point.
Example:
User enters name: "Jon"
PDF: "Welcome Jon!"You can't do it with InDesign but you might be able to do it with some
scripting in Acrobat Pro. You might want to visit the Acrobat forum and
ask there. -
How to create xforms binding-excaption of xml file in the xhtml source?
Hello,
is anyone here who could help me?
I've spent plenty of hours by searching the correct and suitable way for creating a binding exception in XForms, but I did not succeed...
My situation is: I've got an XHTML page with XForms and XML (input) file, which describes this page. Whenewer I change the input data in the XML file (for example there are tags <person> and ....</person> if I change it to <peson1> and ...</person1>) after saving the changes and refreshing the page, the XForms will be changed (for example some text fields are missing or they've got white background instead red one, which there was before et cetera). {I hope it is clear till now.....}
My task is: to create a xforms-binding-expression event, which will display an error message (for example: FILE HAVE BEEN CHANGED, CAN NOT DISPLAY THE PAGE PROPERLY) to the user.
i've found some stuff, how to create such message, but i need to know the exact order of commands to make it work, where to insert them, the structure etc, so I can comprehend your advices...
The XHTML file contains of several blocks - bind, model, submission, instance etc - and I do not actually know, where to insert such lines (with message)...I think I should make some bindings with the page loading, but I've got no idea how to get it done, however there are very few sites with such stuff on the internet. I hope this task is no big deal for you gyus, THANK YOU A LOT IN ADVANCEHello,
is anyone here who could help me?
I've spent plenty of hours by searching the correct and suitable way for creating a binding exception in XForms, but I did not succeed...
My situation is: I've got an XHTML page with XForms and XML (input) file, which describes this page. Whenewer I change the input data in the XML file (for example there are tags <person> and ....</person> if I change it to <peson1> and ...</person1>) after saving the changes and refreshing the page, the XForms will be changed (for example some text fields are missing or they've got white background instead red one, which there was before et cetera). {I hope it is clear till now.....}
My task is: to create a xforms-binding-expression event, which will display an error message (for example: FILE HAVE BEEN CHANGED, CAN NOT DISPLAY THE PAGE PROPERLY) to the user.
i've found some stuff, how to create such message, but i need to know the exact order of commands to make it work, where to insert them, the structure etc, so I can comprehend your advices...
The XHTML file contains of several blocks - bind, model, submission, instance etc - and I do not actually know, where to insert such lines (with message)...I think I should make some bindings with the page loading, but I've got no idea how to get it done, however there are very few sites with such stuff on the internet. I hope this task is no big deal for you gyus, THANK YOU A LOT IN ADVANCE -
How to display Japanese text from an XML file
Hiya,
I have various adapted mp3 players [called playlists on my site] which retrieve the songs and song titles/artists from an XML file. One of them plays Japanese music.
Most of the tracks are in English but I now have a couple of songs with Japanese titles and file names which I can't get to preview/display in Flash Pro CS5 [Mac]. I can type static Japanese text and it displays fine but Flash seems to be having a problem with the Japanese from the XML file.
Though I can find the English titles, etc, it would be nice if there were a way to display Japanese text from a 'multi-lingual' [English and Japanese] XML file [probably something really easy].
Thanks a bunch.
steveThis should help you:
http://http://www.packtpub.com/article/working-with-xml-in-flex3-and-java-1http://www.packtpub.com/article/working-with-xml-in-flex3-and-java-1 -
How to create Bar chart from existing XML file
Hi all,
i'm new to flex, i need your help to develop a flex for
dashboard app. we have sample.xml file. by using this i need to
create a bar diagram or piechart.
Please help me out
The XMl looks like this.....
<?xml version="1.0" encoding="utf-8"?>
<user id="123412343">
<fullName>
<lastName>Telles</lastName>
<firstName>vijay</firstName>
</fullName>
<preferences>
<modWidth>235</modWidth>
<modHeight>250</modHeight>
<totalWidth>1650</totalWidth>
<totalHeight>1650</totalHeight>
<modsX>4</modsX>
<modsY>2</modsY>
</preferences>
<module id="Status2">
<windowOpen>true</windowOpen>
<pointsToShow>
<p label="Proposed"/>
<p label="Draft"/>
<p label="DEP Adpt"/>
<p label="EPA Adpt"/>
</pointsToShow>
<dataSetsToShow>
<label>2006</label>
<label>2007</label>
</dataSetsToShow>
</module>
</user>convert this xml to ArrayCollection called chartData
var charOption:String = "totalHeight"; /Use this to set the
yField property...
<mx:ColumnChart showDataTips="true" id="barChart"
width="100%" height="100%" dataProvider="{chartData}"
color="0xffffff">
<mx:horizontalAxis>
<mx:CategoryAxis
dataProvider="{chartData}"
categoryField="hour" />
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:LinearAxis labelFunction="addDollarSign"/>
</mx:verticalAxis>
<mx:series>
<mx:ColumnSeries yField="{chartOption}"
showDataEffect="interpolate"
creationCompleteEffect="interpolate"/>
</mx:series>
</mx:ColumnChart> -
How to format the text in an XML file
This should be a fairly easy one. A fairly easy one that seems to be hard to actually find.
When I write out the XML file, it's all on a single line. Not a huge problem all things considered (it works), but an annoying one.
Here's the a snippet, to show what I'm doing. There's not enough information for this to actually compile, if one is so inclined, just comment out a bunch of things and have it write out aribitary data.
Is this a case where I just need to manually write the formating myself?
public void saveXML(File file){
try{
Document doc = DocumentBuilderFactory.newInstance().
newDocumentBuilder().newDocument();
//give that document a root
Element root = doc.createElement("root");
doc.appendChild(root);
Command[] command=getCommands();
for (int index=0; index < command.length; index++){
Element element = doc.createElement("Command");
root.appendChild(element);
//get the name of the parser class this command should use
String pName=command[index].getParser().getClass().getName();
//remove everything but the last word
pName=pName.substring(JavaMUServer.PARSER_PATH.length());
//set the information.
element.setAttribute("name",
command[index].getName());
element.setAttribute("parser",pName);
element.setAttribute("method",
command[index].getMethod().getName());
TransformerFactory tFactory =TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer();
DOMSource source = new DOMSource(doc);
StreamResult result = new StreamResult(
new FileWriter(file));
transformer.transform(source, result);
}catch (Exception e){
e.printStackTrace();
}Well, that helped quite a bit. Seems however when I set the indent property, rather then indenting it just makes new lines. Rather counter intuitive.
Here's the slightly modified code (changed one line really. Tried setting a few different properties.)
public void saveXML(File file){
try{
Document doc = DocumentBuilderFactory.newInstance().
newDocumentBuilder().newDocument();
//give that document a root
Element root = doc.createElement("root");
doc.appendChild(root);
Command[] command=getCommands();
for (int index=0; index < command.length; index++){
Element element = doc.createElement("Command");
root.appendChild(element);
element.appendChild(doc.createElement("sample"));
//get the name of the parser class this command should use
String pName=command[index].getParser().getClass().getName();
//remove everything but the last word
pName=pName.substring(JavaMUServer.PARSER_PATH.length());
//set the information.
element.setAttribute("name",
command[index].getName());
element.setAttribute("parser",pName);
element.setAttribute("method",
command[index].getMethod().getName());
TransformerFactory tFactory =TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer();
transformer.setOutputProperty("indent", "yes");
//transformer.setOutputProperty("method", "xml");
DOMSource source = new DOMSource(doc);
StreamResult result = new StreamResult(
new FileWriter(file));
transformer.transform(source, result);
}catch (Exception e){
e.printStackTrace(); -
How to create a text area with spell check and other functions similar to word?
I want to allow users the ability to copy and paste their content on to the site. The problem is giving them the option to use spell check and other word like features to my site. My goal is to develop some thing similar to how we post our question in this forums.
Some old and some new.
http://www.webdesignbooth.com/15-really-useful-web-based-html-editors/
You realize you'll need to use server-side scripts and a database for this. Instead of re-inventing the wheel, you might just want to install WordPress, Drupal or Joomla on your site.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
How to create a dynpro property on the WAS and get it in code?
Hello,
I remember that once I've read at the NWDS help that I can create dynpro properties which can be configured on the WAS's Configuration Adapter serviceand can be retreived when the dynpro application loads. I need to use it now but can't find the explanation and code example. Can someone please show me how to do it?
RoyHi Roy,
1. create a .properties file with the key value pair.
2. Put it in src/configurations/application/<app name>
3.
WDDeployableObjectPart App = wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart();
IWDConfiguration Configprop = WDConfiguration.getConfigurationByName (App,property file name );
// get the string value of the property.
String value = Configprop.getStringEntry ("<key of the property sheet>");
To chaneg the property value outside the application,
Goto configuration adapter -> WEbdynpro -> the app name. Under that you will find the property file
You can edit the file and restart the server.
Regards
Bharathwaj -
How to export a data as an XML file from oracle data base?
could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
Thankz in advance
BalaSQL> SELECT * FROM v$version;
BANNER
Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
5 rows selected.
SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
Directory created.
SQL> declare
2 doc DBMS_XMLDOM.DOMDocument;
3 xdata XMLTYPE;
4
5 CURSOR xmlcur IS
6 SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",
7 'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")
8 ,xmlelement("EmployeeNumber",e.empno)
9 ,xmlelement("EmployeeName",e.ename)
10 ,xmlelement("Department",xmlelement("DepartmentName",d.dname)
11 ,xmlelement("Location",d.loc)
12 )
13 )
14 FROM emp e
15 , dept d
16 WHERE e.DEPTNO=d.DEPTNO;
17
18 begin
19 OPEN xmlcur;
20 FETCH xmlcur INTO xdata;
21 CLOSE xmlcur;
22 doc := DBMS_XMLDOM.NewDOMDocument(xdata);
23 DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');
24 end;
25 /
PL/SQL procedure successfully completed.
. -
How can I generate IDOC(WPUUMS) from XML file in POSDM or in SAP Retail
Hallo Retail expert,
I have following scenario,
I have Retail Store who send me their daily sales report through Wincor Nixdorf Point of sale. There i am using standard POSLOG2 to SEEBURGER(its a middleware which act as Converter) xml format and then i post that data first in POSDM and then with BAPI i transfer or book that data to SAP Retail.
Above is the one scenario which is working.
This is the Second scenario.......
I have some external Retail store, they dont have Wincor Nixdorf POS, so they send me their Sales Report through SEEBURGER(its a middle Hardware which act as Converter) and SEEBURGER Convert that Sales data to XML format. My question is....
How can i upload or Convert a XML File into IDOC (WPUUMS)in SAP or in POSDM?
any new suggestion are welcome.
Thank you all in advance.
regards,
NielHi,
1. To get the required XML Schema, use transaction code WE60 to go to the IDoc documentation -> enter the IDoc type you want to use (WPUUMS01). Flag control and data record. Then display the XSD by choosing Documentation -> XML Schema from the menue bar. Now you can donwload the XSD for usage in Seeburger.
2. Create your mapping from the POS format into the IDoc XML format in Seeburger.
3. Create an XML File Port in ERP or POS DM using transaction code WE21.
3. To inbound the XML file from Seeburger into POS DM or SAP Retail Seeburger should trigger the function module EDI_DATA_INCOMING. Parameters for this FM are the Pathname to the XML file and the Portname you just created. Based on the port name the FM can derive the port type xml and the data will be handled as XML data.
Regards Carsten -
Message Mapping Error in Text File to XML file Scenario
Hi Gurus,
This is Sudheer...I am New to SAP-PI......
Below link is File to File Scenario(Text File to XML File)...
https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/basicFileAdapterContentConversion
I am facing Message Mapping Error....I am not able to map the fileds...
Please help me.
-SudheerThanks Shabarish & Manisha for your reply....
Ya I am getting error while I am testing in IR....
I dont know how to map the fields that shown given below...
Message Type --- Message Type
Record Employee
Header EmployeeID
Key Name
EmpID Company
Name Phone
Company Prior_Employer
Phone Company
Detail Location
Key
Company
Location -
How to write the nodevalue back to xml file?
Hi, Everybody:
These are two packages I used. javax.xml.parsers.*,org.w3c.dom.*
Now I use "setNodeValue("abc") to set the node value to "abc". But it is not really saved back into XML file. It only change the node value in memory.
How to write the changes back to XML file? Thank you very much for your help.
Michelle* Version : 1.00
* File Purpose : Given the xml file loads into dom and recreate the file with the updated values.
* Developer : Kashif Qasim : 25/july/04
* Modify detail :
import java.lang.*;
import java.io.*;
import java.util.*;
import java.text.*;
import org.w3c.dom.*;
import org.apache.xerces.parsers.DOMParser;
import org.apache.xerces.*;
public class XMLWriter
private String displayStrings[] = new String[5000];
private int numberDisplayLines = 0;
private Document document;
//private final Node c;
public synchronized void displayDocument(String uri,Vector UpdatedValues,String getTaskID)
try {
DOMParser parser = new DOMParser();
parser.parse(uri);
document = parser.getDocument();
display(document, "",UpdatedValues);
} catch (Exception e) {
e.printStackTrace(System.err);
ReadXmlConfig objReadXmlConfig = null;
FileWriter filewriter = null;
try {
filewriter = new FileWriter(uri);
for(int loopIndex = 0; loopIndex < numberDisplayLines; loopIndex++){
filewriter.write(displayStrings[loopIndex].toCharArray());
//System.out.println("displayStrings[loopIndex].toCharArray() "+displayStrings[loopIndex].toString());
//filewriter.write("\n");
filewriter.close();
System.gc();
objReadXmlConfig = new ReadXmlConfig();
objReadXmlConfig.ITSLog("File updated for "+getTaskID+" succesfully, file is closed now ");
} catch (IOException e) {
System.err.println("Caught IOException: " + e.getMessage());
objReadXmlConfig = new ReadXmlConfig();
objReadXmlConfig.ITSErrorLog("File updated FAILED for "+getTaskID+". Reason for file error "+e.toString());
}finally {
if (filewriter != null) {
System.out.println("Closing File");
objReadXmlConfig =null;
try{
filewriter.close();
}catch(IOException e){
System.err.println("Caught IOException: " + e.getMessage());
} else {
System.out.println("File not open");
private void display(Node node, String indent, Vector UpdtRecs)
if (node == null) {
return;
int type = node.getNodeType();
NodeList nodeList = document.getElementsByTagName("QueryParm");
int TotalRecs = UpdtRecs.size();
switch (type) {
case Node.DOCUMENT_NODE: {
displayStrings[numberDisplayLines] = indent;
displayStrings[numberDisplayLines] +=
"<?xml version=\"1.0\" encoding=\""+
"UTF-8" + "\"?>";
numberDisplayLines++;
displayStrings[numberDisplayLines] += "\n";
display(((Document)node).getDocumentElement(), "",UpdtRecs);
break;
case Node.ELEMENT_NODE: {
if(node.getNodeName().equals("QueryParm")) {
for(int i =0 ; i< nodeList.getLength() ; i++)
Node nodeQry = nodeList.item(i);
NamedNodeMap nnp = nodeQry.getAttributes();
for(int j= 0 ; j < nnp.getLength() ; j++)
Attr atr = (Attr) nnp.item(j);
if(atr.getName().equalsIgnoreCase("value_"+(i+1)))
//System.out.println(atr.getName() +" : " + atr.getNodeValue() );
atr.setNodeValue(UpdtRecs.get(i).toString());
displayStrings[numberDisplayLines] = indent;
displayStrings[numberDisplayLines] += "<";
displayStrings[numberDisplayLines] += node.getNodeName();
int length = (node.getAttributes() != null) ?
node.getAttributes().getLength() : 0;
Attr attributes[] = new Attr[length];
for (int loopIndex = 0; loopIndex < length; loopIndex++) {
attributes[loopIndex] = (Attr)node.getAttributes().item(loopIndex);
for (int loopIndex = 0; loopIndex < attributes.length; loopIndex++) {
Attr attribute = attributes[loopIndex];
displayStrings[numberDisplayLines] += " ";
displayStrings[numberDisplayLines] += attribute.getNodeName();
displayStrings[numberDisplayLines] += "=\"";
displayStrings[numberDisplayLines] += attribute.getNodeValue();
displayStrings[numberDisplayLines] += "\"";
displayStrings[numberDisplayLines]+=">";
numberDisplayLines++;
NodeList childNodes = node.getChildNodes();
if (childNodes != null) {
length = childNodes.getLength();
indent += " ";
for (int loopIndex = 0; loopIndex < length; loopIndex++ ) {
display(childNodes.item(loopIndex), indent,UpdtRecs);
break;
case Node.CDATA_SECTION_NODE: {
displayStrings[numberDisplayLines] = "";
displayStrings[numberDisplayLines] += "<![CDATA[";
displayStrings[numberDisplayLines] += node.getNodeValue();
displayStrings[numberDisplayLines] += "]]>";
numberDisplayLines++;
break;
case Node.TEXT_NODE: {
displayStrings[numberDisplayLines] = "";
String newText = node.getNodeValue().trim();
if(newText.indexOf("\n") < 0 && newText.length() > 0) {
displayStrings[numberDisplayLines] += newText;
displayStrings[numberDisplayLines] += "\n";
numberDisplayLines++;
break;
case Node.PROCESSING_INSTRUCTION_NODE: {
displayStrings[numberDisplayLines] = "";
displayStrings[numberDisplayLines] += "<?";
displayStrings[numberDisplayLines] += node.getNodeName();
String text = node.getNodeValue();
if (text != null && text.length() > 0) {
displayStrings[numberDisplayLines] += text;
displayStrings[numberDisplayLines] += "?>";
displayStrings[numberDisplayLines] += "\n";
numberDisplayLines++;
break;
if (type == Node.ELEMENT_NODE) {
displayStrings[numberDisplayLines] = indent.substring(0,
indent.length() - 4);
displayStrings[numberDisplayLines] += "</";
displayStrings[numberDisplayLines] += node.getNodeName();
displayStrings[numberDisplayLines] += ">";
displayStrings[numberDisplayLines] += "\n";
numberDisplayLines++;
indent += " ";
public static void main(String args[])
Vector xmlValue = new Vector();
xmlValue.add(0,"Kashif");
xmlValue.add(1,"Qasim");
//displayDocument("NewMediation.xml",xmlValue);
<?xml version="1.0" encoding="UTF-8"?>
<Mediation>
<Task1>
<Source>
<SourceDriver>com.microsoft.jdbc.sqlserver.SQLServerDriver</SourceDriver>
<SourceConnection>jdbc:microsoft:sqlserver://10.2.1.58:1433;DatabaseName=MTCVB_HDS;</SourceConnection>
<SourceUser>sa</SourceUser>
<SourcePassword>sa</SourcePassword>
<Table>
<SourceTable>t_Agent</SourceTable>
<SourceQuery><![CDATA[SELECT SkillTargetID,PersonID,PeripheralID,EnterpriseName,PeripheralNumber,Deleted,TemporaryAgent,AgentStateTrace,ChangeStamp FROM t_Agent where SkillTargetID > {value_1} order by SkillTargetID]]>
</SourceQuery>
<SourceParm BusinessRule="" ColumnName="SKILLTARGETID" ColumnNumber="1" DataType="Numeric" DefaultValue="0" Format="mm/dd/yyyy xx:xx:xx XX">
</SourceParm>
<SourceParm BusinessRule="" ColumnName="PERSONID" ColumnNumber="2" DataType="String" DefaultValue="" Format="">
</SourceParm>
<SourceParm BusinessRule="" ColumnName="PERIPHERALID" ColumnNumber="3" DataType="String" DefaultValue="" Format="">
</SourceParm>
<SourceParm BusinessRule="" ColumnName="ENTERPRISENAME" ColumnNumber="4" DataType="String" DefaultValue="" Format="">
</SourceParm>
<SourceParm BusinessRule="" ColumnName="PERIPHERALNUMBER" ColumnNumber="5" DataType="String" DefaultValue="" Format="">
</SourceParm>
<SourceParm BusinessRule="" ColumnName="DELETED" ColumnNumber="6" DataType="String" DefaultValue="" Format="">
</SourceParm>
<SourceParm BusinessRule="" ColumnName="TEMPORARYAGENT" ColumnNumber="7" DataType="String" DefaultValue="" Format="">
</SourceParm>
<SourceParm BusinessRule="" ColumnName="AGENTSTATETRACE" ColumnNumber="8" DataType="String" DefaultValue="" Format="">
</SourceParm>
<SourceParm BusinessRule="" ColumnName="CHANGESTAMP" ColumnNumber="9" DataType="String" DefaultValue="" Format="">
</SourceParm>
<QueryParm FldName_1="SkillTargetID" FldType_1="Number" value_1="0">
</QueryParm>
</Table>
</Source>
</Task1>
</Mediation>
The QueryParm values are updated thru this code :)
Hope it helps u ... -
How do I keep text in a converted file??
I want to convert a PDF file that I received as an email attachement. Can I convert it without saving it first. It is the type that will let you save a blank form but not the info typed in and I don't want to retype the entire form.
When I try to save it only the form is saved not the text that was typed in. I want to save the info so I don't have to retype it.Bob
Date: Tue, 10 Jan 2012 14:32:10 -0700
From: [email protected]
To: [Removed by moderator]
Subject: Re: How do I keep text in a converted file?? How do I keep text in a converted file??
Re: How do I keep text in a converted file??
created by Dave Stromfeld in Adobe CreatePDF - View the full discussion
Hi, Bob.Yes, CreatePDF will allow you to save a PDF file as a Word file, so you can then type and add text to that Word file. If you received it as an email attachment, it will be easiest to: 1) save it to your computer's desktop, 2) upload it to the CreatePDF service.Please let us know if you have additional questions or issues.Regards,Dave
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: How do I keep text in a converted file??
To unsubscribe from this thread, please visit the message page at Re: How do I keep text in a converted file??. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Adobe CreatePDF by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Importing Arabic text from an XML file
Importing text from an XML file to appear as text in Flash
works in English, however if the text I want to import is in
Arabic, when I test the movie there is no text at all.
Is there some particular syntax to preface the Arabic text?
I'll want to import text from XML in other languages too.
(French)
I'd cut and pasted some Arabic text into the XML file that
displays pictures and text in the "slideshow.fla" (
http://www.adobe.com/support/flash/applications/jpeg_slideshow_xml/jpeg_slideshow_xml03.ht ml)
Substituting Arabic text for English text, editing the XML
file with Dreamweaver.
Any ideas as to how I might achieve my objective of importing
Arabic text into Fash?
I'd started developing my prototpe in Macromedia Director 7,
and then Director MX, but I have not found a suitable Arabic font
that I can embed that will allow me to display Arabic fonts in
Adobe Director. I have the Arabic text in a Word document.
I've dicovered that my Flash MX Pro and Dreamweaver both
support Arabic fonts, but I want to import text from an XML file.
I'd prefer using cast libraries and cast members, but I don't
know of an equivalent in Flash to what I'm comfortable with in
Director.Oh so many questions. You probably aren't going to like the
answers. I have Flash MX04 pro (aka Flash 7) and things made a big
jump between MX (aka 6) and MX04. If you only have MX, there might
not be a way to do this. All my advice is based upon MX04 or
higher.
It is possible to do complex languages in Flash. My
experience is with Hindi and I've helped a few folks here with
Arabic.
You won't be able to use text from Microsoft Word – at
least I don't think so. The XML file will need to be saved in the
UTF-8 format. I think Word uses its own scheme and won't work. But
I'm not a Word expert. Something like Text Edit (Mac) or WordPad
(PC) should be able to save a UTF-8 file.
The next problem is you mention "suitable Arabic font that I
can embed." AFAIK, you can't embed any of the complex scripts in
Flash. You just have to rely on the end user having appropriate
fonts installed and enabled. Most operating systems from 2000 on do
have this – although some folks like to remove them to save
space.
Next issue will be line composing. I've found that when using
anything above the normal Latin range that Flash suddenly forgets
how to make a line fit into a text area. It will just break things
in the middle of words and not even notice the spaces between
words. I've written a little snippet of code that "composes" the
lines. It works well with Hindi and folks here have used it with
Arabic and not come back saying that it doesn't work. Search the
forums (both the Flash and Actionscript) if you can't find it I'll
dig it out when I get home.
So here is the checklist:
Make sure the XML is saved in UTF-8
Import the XML file
In Testing environment go Debug–>List variables.
Does it show up correctly there?
Does it show at all in a text field?
Use the "composer" to make the lines break. -
Hello, I have CME 8.6 installed on two 2851s and before going into production, I am testing a few phones.
One of my 2851's is creating cnf.xml files for each phone using SEP<Mac address>.cnf.xml and the other one will not and the phones keep booting up with XMLDefault.cnf.xml.
I've looked at both configurations and I can't see what the difference is. Other than not being able to create the SEP<MacAddress>.cnf.xml files, the phones appear to be loading up fine.
One difference I see is the "its" directory is located on system: on the one that creates the cnf files, and the "its" directory is located in flash on the one that doesn't, although I don't know how that matters.
Below is the one that doesn't create the SEP<MACADDRESS>.cnf.xml files for phones:
Current configuration : 2657 bytes
! Last configuration change at 02:12:45 UTC Wed Oct 8 2014
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname RtrPod2
boot-start-marker
boot-end-marker
no aaa new-model
no network-clock-participate wic 3
crypto pki token default removal timeout 0
dot11 syslog
ip source-route
ip cef
ip dhcp excluded-address 20.0.30.0 20.0.30.10
ip dhcp excluded-address 20.0.10.0 20.0.10.10
ip dhcp pool Data
network 20.0.10.0 255.255.255.0
default-router 20.0.10.254
option 150 ip 20.0.30.254
ip dhcp pool Voice
network 20.0.30.0 255.255.255.0
default-router 20.0.30.254
option 150 ip 20.0.30.254
dns-server 8.8.8.8
no ipv6 cef
multilink bundle-name authenticated
voice-card 0
license udi pid CISCO2851 sn FTX1331AJQ1
username cisco privilege 15 password 0 cisco
redundancy
controller T1 0/3/0
controller T1 0/3/1
interface Loopback0
no ip address
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 20.0.10.254 255.255.255.0
interface GigabitEthernet0/0.30
encapsulation dot1Q 30
ip address 20.0.30.254 255.255.255.0
interface GigabitEthernet0/1
ip address 192.168.5.232 255.255.255.0
duplex auto
speed auto
interface Serial0/0/0
no ip address
shutdown
clock rate 2000000
interface Serial0/0/1
ip address 200.2.0.1 255.255.255.0
ip forward-protocol nd
no ip http server
no ip http secure-server
tftp-server flash:cmterm-7940-7960-sccp.8-1-2.cop.sgn alias cmterm-7940-7960-sccp.8-1-2
tftp-server flash:/Ringtones/DistinctiveRingList.xml alias DistinctiveRingList.xml
tftp-server flash:/Ringtones/Ringlist.xml alias Ringlist.xml
tftp-server flash:P00308010200.bin
tftp-server flash:P00308010200.loads
tftp-server flash:P00308010200.sb2
tftp-server flash:P00308010200.sbn
control-plane
mgcp profile default
telephony-service
no auto-reg-ephone
max-ephones 110
max-dn 288
ip source-address 20.0.30.254 port 2000
system message Branch System
load 7960-7940 P00308010200
max-conferences 8 gain -6
transfer-system full-consult
create cnf-files version-stamp Jan 01 2002 00:00:00
ephone-dn 1 dual-line
number 2000
label Phil Davis
description Branch Office
ephone 1
device-security-mode none
mac-address 0009.E89D.0B4F
username "cisco" password cisco
button 1:1
line con 0
line aux 0
line vty 0 4
login local
transport input all
line vty 5 15
login local
transport input all
scheduler allocate 20000 1000
endHello, and thanks for the good advice. I did try and added the cnf perphone command and ran no create cnf-files and then create cnf-files, but unfortunately its still not making them.
Also, from the other few CME installations I've seen, all of the information is in flash, but for some reason when I xtracted the tar for this CME, it's showing up in system: ? Could that be a problem? Here is what I see:
CompactFlash directory:
File Length Name/status
1 67922508 c2800nm-adventerprisek9-mz.151-4.M8.bin
2 85149696 cme-full-8.0.0.1.tar
3 2942935 apps11.8-5-3TH1-6.sbn
4 503269 cnu11.8-5-3TH1-6.sbn
5 2104751 cvm11sccp.8-5-3TH1-6.sbn
6 340615 dsp11.8-5-3TH1-6.sbn
7 1616686 jar11sccp.8-5-3TH1-6.sbn
8 670 SCCP11.8-5-3S.loads
9 674 term06.default.loads
10 674 term11.default.loads
11 1916 MISCH-1.3.3.SBN
12 900 CP7921G-1.3.3.LOADS
13 900 CP7925G-1.3.3.LOADS
14 674 term42.default.loads
15 674 term62.default.loads
16 670 SCCP42.8-5-3S.loads
17 655 term31.default.loads
18 654 term41.default.loads
19 654 term45.default.loads
20 654 term61.default.loads
21 654 term65.default.loads
22 654 term70.default.loads
23 654 term71.default.loads
24 654 term75.default.loads
25 651 SCCP31.8-5-3S.loads
26 650 SCCP41.8-5-3S.loads
27 650 SCCP45.8-5-3S.loads
28 650 SCCP70.8-5-3S.loads
29 650 SCCP75.8-5-3S.loads
30 61 SCCP69xx.8-5-3-0.loads
31 131470 Desktops/320x212x12/CampusNight.png
32 80565 Desktops/320x212x12/CiscoFountain.png
33 8156 Desktops/320x212x12/CiscoLogo.png
34 138278 Desktops/320x212x12/FOUNTAIN.PNG
35 740 Desktops/320x212x12/LIST.XML
36 109076 Desktops/320x212x12/MorroRock.png
37 108087 Desktops/320x212x12/NantucketFlowers.png
38 10820 Desktops/320x212x12/TN-CampusNight.png
39 9657 Desktops/320x212x12/TN-CiscoFountain.png
40 2089 Desktops/320x212x12/TN-CiscoLogo.png
41 7953 Desktops/320x212x12/TN-Fountain.png
42 7274 Desktops/320x212x12/TN-MorroRock.png
43 9933 Desktops/320x212x12/TN-NantucketFlowers.png
44 740 Desktops/320x212x16/LIST.XML
45 740 Desktops/320x216x16/LIST.XML
46 8224 Ringtones/Analog1.raw
47 8307 Ringtones/Analog2.raw
48 5280 Ringtones/AreYouThere.raw
49 5040 Ringtones/AreYouThereF.raw
50 8206 Ringtones/Bass.raw
51 12240 Ringtones/CallBack.raw
52 16066 Ringtones/Chime.raw
53 8160 Ringtones/Classic1.raw
54 16080 Ringtones/Classic2.raw
55 10800 Ringtones/ClockShop.raw
56 2823 Ringtones/DistinctiveRingList.xml
57 9665 Ringtones/Drums1.raw
58 13610 Ringtones/Drums2.raw
59 15928 Ringtones/FilmScore.raw
60 16244 Ringtones/HarpSynth.raw
61 8245 Ringtones/Jamaica.raw
62 16127 Ringtones/KotoEffect.raw
63 12776 Ringtones/MusicBox.raw
64 8223 Ringtones/Piano1.raw
65 15422 Ringtones/Piano2.raw
66 9360 Ringtones/Pop.raw
67 7200 Ringtones/Pulse1.raw
68 4000 Ringtones/Ring1.raw
69 4000 Ringtones/Ring2.raw
70 4000 Ringtones/Ring3.raw
71 4000 Ringtones/Ring4.raw
72 4000 Ringtones/Ring5.raw
73 4000 Ringtones/Ring6.raw
74 4088 Ringtones/Ring7.raw
75 495 Ringtones/Ringlist.xml
76 10858 Ringtones/Sax1.raw
77 14233 Ringtones/Sax2.raw
78 16100 Ringtones/Vibe.raw
79 8095286 apps37sccp.1-3-4-0.bin
80 2942935 apps31.8-5-3TH1-6.sbn
81 2935993 apps42.8-5-3TH1-6.sbn
82 2935993 apps45.8-5-3TH1-6.sbn
83 2935993 apps75.8-5-3TH1-6.sbn
84 2933329 apps41.8-5-3TH1-6.sbn
85 2933329 apps70.8-5-3TH1-6.sbn
86 2599169 APPSH-1.3.3.SBN
87 2591877 APPS-1.3.3.SBN
88 2118620 SYSH-1.3.3.SBN
89 2103754 cvm70sccp.8-5-3TH1-6.sbn [invalid checksum]
90 2101414 cvm41sccp.8-5-3TH1-6.sbn [invalid checksum]
91 2100804 cvm45sccp.8-5-3TH1-6.sbn [invalid checksum]
92 2100554 cvm75sccp.8-5-3TH1-6.sbn [invalid checksum]
93 2100286 cvm31sccp.8-5-3TH1-6.sbn [invalid checksum]
94 2099070 cvm42sccp.8-5-3TH1-6.sbn [invalid checksum]
95 2083047 SYS-1.3.3.SBN [invalid checksum]
96 1939872 WLANH-1.3.3.SBN [invalid checksum]
97 1906272 SCCP69xx.8-5-3-0.zz [invalid checksum]
98 1892036 GUIH-1.3.3.SBN [invalid checksum]
99 1887312 jar75sccp.8-5-3TH1-6.sbn [invalid checksum]
100 1882934 jar45sccp.8-5-3TH1-6.sbn [invalid checksum]
101 1848343 GUI-1.3.3.SBN [invalid checksum]
102 1828410 jar70sccp.8-5-3TH1-6.sbn [invalid checksum]
103 1756328 jar42sccp.8-5-3TH1-6.sbn [invalid checksum]
104 1628021 jar41sccp.8-5-3TH1-6.sbn [invalid checksum]
105 1616425 jar31sccp.8-5-3TH1-6.sbn [invalid checksum]
106 1379535 WLAN-1.3.3.SBN [invalid checksum]
107 939293 TNUXH-1.3.3.SBN [invalid checksum]
108 896477 TNUX-1.3.3.SBN [invalid checksum]
109 537925 dsp41.8-5-3TH1-6.sbn [invalid checksum]
110 537925 dsp70.8-5-3TH1-6.sbn [invalid checksum]
111 524969 cnu45.8-5-3TH1-6.sbn [invalid checksum]
112 524917 cnu42.8-5-3TH1-6.sbn [invalid checksum]
113 524876 cnu75.8-5-3TH1-6.sbn [invalid checksum]
114 503753 cnu31.8-5-3TH1-6.sbn [invalid checksum]
115 500084 cnu70.8-5-3TH1-6.sbn [invalid checksum]
116 499644 cnu41.8-5-3TH1-6.sbn [invalid checksum]
117 496521 music-on-hold.au [invalid checksum]
118 340615 dsp31.8-5-3TH1-6.sbn [invalid checksum]
119 340615 dsp42.8-5-3TH1-6.sbn [invalid checksum]
120 340615 dsp45.8-5-3TH1-6.sbn [invalid checksum]
121 340615 dsp75.8-5-3TH1-6.sbn [invalid checksum]
122 264368 DSP69xx.0-0-0-3.zz [invalid checksum]
123 165355 B016-1-0-3.SBN [invalid checksum]
124 146463 B015-1-0-3.SBN [invalid checksum]
125 44896 BOOT69xx.0-0-0-14.zz [invalid checksum]
126 11601 CME-8-0-Full-Readme-v.1.0.txt [invalid checksum]
127 5134 7970-71-75-Background-readme-v1.txt [invalid checksum]
128 1916 MISC-1.3.3.SBN [invalid checksum]
129 4118 GUI/admin_user.html [invalid checksum]
130 677820 GUI/admin_user.js [invalid checksum]
131 1029 GUI/CiscoLogo.gif [invalid checksum]
132 639 GUI/CME_GUI_README.TXT [invalid checksum]
133 953 GUI/Delete.gif [invalid checksum]
134 16344 GUI/DOM.JS [invalid checksum]
135 864 GUI/downarrow.gif [invalid checksum]
136 6315 GUI/ephone_admin.html [invalid checksum]
137 4558 GUI/LOGOHOME.GIF [invalid checksum]
138 3978 GUI/normal_user.html [invalid checksum]
139 78428 GUI/normal_user.js [invalid checksum]
140 1347 GUI/Plus.gif [invalid checksum]
141 843 GUI/SXICONAD.GIF [invalid checksum]
142 174 GUI/Tab.gif [invalid checksum]
143 2496 GUI/telephony_service.html [invalid checksum]
144 870 GUI/UPARROW.GIF [invalid checksum]
145 10230 GUI/xml-test.html [invalid checksum]
146 3412 GUI/xml.template [invalid checksum]
147 12 OS79XX.txt
148 130552 P00308010200.bin
149 461 P00308010200.loads
150 708448 P00308010200.sb2
151 130956 P00308010200.sbn
152 703535 cmterm-7940-7960-sccp.8-1-2.cop.sgn
[239789964 bytes used, 281983088 available, 521773052 total]
509544K bytes of ATA CompactFlash (Read/Write)
RtrPod2#show telephony-service tftp-bindings
tftp-server system:/its/united_states/7960-tones.xml alias United_States/7960-tones.xml
tftp-server system:/its/united_states/7960-font.xml alias English_United_States/7960-font.xml
tftp-server system:/its/united_states/7960-font.xml alias English_United_States/7920-font.xml
tftp-server system:/its/united_states/7960-dictionary.xml alias English_United_States/7960-dictionary.xml
tftp-server system:/its/united_states/7960-kate.xml alias English_United_States/7960-kate.xml
tftp-server system:/its/united_states/7960-kate.xml alias English_United_States/7920-kate.xml
tftp-server system:/its/united_states/SCCP-dictionary.xml alias English_United_States/SCCP-dictionary.xml
tftp-server system:/its/SEPDEFAULT.cnf alias SEPDefault.cnf
tftp-server system:/its/vrf1/XMLDefault.cnf.xml alias XMLDefault.cnf.xml
Maybe you are looking for
-
Hello and good afternoon, my IPod Touch is neither in windows explorer nor in iTunes to be seen. When I turn my IPod on, i shall connect it to my computer; but when I do so, nothing happens. What can I do, please ???
-
Can't mount Time Capsule on PC (white system tray icon no longer there)
My new time capsule is working perfectly on my MacBookPro, however recently I tried to get it to work on my PC laptop. I easily got the wireless internet work on the PC, that's not a problem. I installed the airport utility on my PC and it was able t
-
Can't get emails. Keep getting message MFMessageErrorDomain error 1032. I put in my password which it keeps asking for but it still doesn't work.
-
Nodemanager issues to start managed server on 2nd domain
Hi I have the next environment 1 - physical machine 2 domains ( 1 domain: Admin + soa + bpm , 2 domain: Admin +osb). Nodemanager (default port 5556) I have started the first domain managed servers (soa + bpm) through the nodemanager with out any prob
-
How do I uninstall an App in SnowLeopard ver: 10.6.8
I downloaded and installed an App Twice like a dummy! How do I uninstall one of these. I tried moving to trash but recv'd error saying " could not move to trash cause app was OPEN"! Dunno how to close? I just want it gone, huh! Also is there a utili