Reg: Get the character of prefix in the name of the attachment
Hi allE-mail using burst works very well... But faced with a problem with a future prefix character, as well as the PDF output.
How to solve this problem?
for example:
Instead of Purchase_Order_12345.pdf, his coming as xdo1purchaseOrder_12345.pdf
Use control file was: -.
* <? XML version = "1.0" encoding = "UTF-8"? > *.
* < xapi:requestset xmlns:xapi = "http://xmlns.oracle.com/oxp/xapi" > *.
* < xapi:globalData location = 'flow' > *.
* < / xapi:globalData > *.
* < select xapi:request = ' / UPOXPRPOP/LIST_G_MANUAL_PO_NUM_TYPE/G_MANUAL_PO_NUM_TYPE/LIST_G_CF_PO_TYPE/G_CF_PO_TYPE ' > *.
* < xapi:delivery > *.
* < xapi:email server = "xxxx" port = "25" = "[email protected]" reply-to = "[email protected]" > *.
* < xapi:message id = "123" to = "[email protected]" cc = "" attachment = "true" content-type = "text/html" subject = "order form ${POH_PO_NUM}" > * "
* You will find attached Purchase Order Number ${POH_PO_NUM}. *
* < / xapi:message > *.
* < / xapi:email > *.
* < / xapi:delivery > *.
* < xapi:document key = output type to "purchase Order_ # ${POH_PO_NUM}" = 'pdf' flow '123' = > *.
* < xapi:template type = "rtf" location = "xdo://PO. MOPTPOXML_US_EMAIL.en.us/? GetSource = true' > *.
* < / xapi:template > *.
* < / xapi:document > *.
* < / xapi:request > *.
* < / xapi:requestset > *.
Thanks in advance
Published by: happy King Gold on October 3, 2010 22:15
The output attribute seems to be absent from the document element.
Try to change...
... to ...
... and see if it makes a difference.
Tags: Business Intelligence
Similar Questions
-
Get the name of the attachment and the e-mail address in bpel process
Hi all
I use UMS adapter to query mail servers and get the attachment and save it to the local disk.
In the payload of the UMS adapter I get href of the accessory, but I'm not able to understand as to how to get the name of an attachment and the address of a mail in my Bpel process.
Please guide me to make them.
Thanks in advance
Samreth
1 double click on your composite receive activity.
2. go in the Properties tab of your activity.
3. click on ' + '.
4 window that appears, scroll down and select "jca.ums.from" and store it in some variable say fromAddress (ensure, before adding this property u create variable string fromAddress).
5. click on OK.
6. in the same way add property to ' jca.ums.msg.content - description "drop down and assing it to a variable.
you're good to go.
I hope this helps.
Kind regards
Karan
-
Download the attachment to Email
I want to get an image received as an attachment in an email, but I can't seem to understand the correct way to do it.
When an e-mail is received I can get the attachment in an object of attachment, but the way some points to
/ Accounts/1000/pimdata/messages/1419773287/2/4/4374/att-itiqa1
What should I do from here to turn it into a JPEG somewhere on the system so I can access it.
I sent the e-mail, also in the code using
builder->body(MessageBody::Html, bodyData); QString contentId = "image" + QString::number(0) + "@b.sky.com"; QVariantMap metaData; metaData["Content-ID"] = "<" + contentId + ">"; Attachment attachment = Attachment("image/jpeg", QFileInfo(fname).fileName(), QUrl::fromLocalFile(fname.remove("file:///")), metaData); builder->addAttachment(attachment);
Any help appreciated.
I solved this problem using MessageService to retrieve the attachments() which gives me FileAttachment instead, and the FileAttachment fullPath() gives the correct path for my image.
-
Whenever I open my computer I get the following message is displayed as a pop-up on the desktop: C:\PROGRAMA~2 Kodak\EasyShareSetup\$Regis~1\Registration_7.2.20.2.stx I don't have Kodak on my computer and I typed Kodak in the search above Start section and checked my programs.
How do I get this off of my computer? Any suggestions appreciated woul
I typed Kodak in search above to start section and checked my programs.
Instead do with msinfo32.exe to open system information. Then, in the Environment\Startup software do a find, category searches only for Kodak
Even better would be to use AutoRuns (utility system available on TechNet).
HTH
Robert Aldwinckle
--- -
Windows XP can get the prefix IPv6 over PPPoE?
Hi all! We can configure Windows 7 and Ubuntu as they get prefix IPv6 and IPv4 address simultaneously (i.e. double stack), but with Windows XP, we have no chance. Windows XP can get the prefix IPv6 over PPPoE?
Hello
I suggest you to visit these links.
Using IPv6 and Teredo.
http://TechNet.Microsoft.com/en-us/library/bb457042.aspx
Windows XP networking features and improvements.
http://TechNet.Microsoft.com/en-us/library/bb457047.aspx
In the above document, see PPPoE Client and more information see help online Windows XP or the IEEE RFC 2516.
http://www.ietf.org/RFC/RFC2516.txt?number=2516
If you have any question, you can post in the TechNet Windows XP forum.
http://social.technet.Microsoft.com/forums/en-us/itproxpsp/threads
-
How to get the part of string before and after a character
Hi all
How to get the string before and after the comma character)
Ex: The string contains the value John Kennedy
I need the output as first stirng - John
Second stirng - Kennedy
Create table names (fullname varchar2 (20));
insert into values of names ("John, Kennedy");
insert into values of names ("papa ibra, Shan");
insert into values of names ('Don Bosco'),
Select * from names;
Expected results
FullName firstname lastname
John, Kennedy John Kennedy
Nicolas, Nicolas Shan Shan
Don Bosco Don Bosco
Please let me know how to proceed
Thank you
Hello
This proves what I said before, on 0 and several commas commas.
If we add these 3 rows to the sample data you posted:
insert into names (fullname) values ("tou").
insert into names (fullname) values (' David, Lloyd, George ");
insert into names (fullname) values ('J, R, R, Tolkien");
then the query I posted earlier produced these results:
FULLNAME FIRSTNAME LASTNAME
-------------------- -------------------- --------------------
John, Kennedy John Kennedy
Nicolas, Nicolas Shan Shan
Don Bosco Don Bosco
TOU tou
David Lloyd, George David Lloyd, George
J, R, R, Tolkien J R, R, Tolkien
If you prefer to get these results:
FULLNAME FIRSTNAME LASTNAME
-------------------- -------------------- --------------------
John, Kennedy John Kennedy
Nicolas, Nicolas Shan Shan
Don Bosco Don Bosco
TOU tou
David Lloyd, George David, Lloyd George
J, R, R, J, R, R Tolkien Tolkien
then you just change line 1:
WITH got_commapos AS
(
SELECT FullName
, INSTR (fullname, ','-1) AS commapos-* CHANGED *.
Names
)
SELECT FullName
, SUBSTR (fullname, commapos 1, -1) AS a first name
SUBSTR (fullname, commapos + 1) in the FORM name
OF got_commapos
;
-
By creating a form that has several text boxes to a single character on the same line, how can I get the cursor to go in the next text box automatically after inserting a character?
Create a text field and use the option 'comb n characters.
-
How do I get the character under the cursor?
I'll try to find the best approach/strategy for the character under the cursor in a text node that contains multiple characters, and I was wondering if anyone had any idea of how to go about doing this?Hello. You can get the character at the cursor location in the text field by adding a listener to the caretPosition property:
final TextField tf1 = new TextField(); tf1.caretPositionProperty().addListener(new ChangeListener
() { public void changed(ObservableValue extends Number> observable, Number oldValue, final Number newValue) { if (newValue != null && newValue.intValue() > 0) { System.out.println("The caracter at cursor is --> " + tf1.getText(newValue.intValue() - 1, newValue.intValue())); } } }); Update:
You ask about text, not a text field. I did not pay attention. Sorry about that.
It can be made to the text too.import javafx.application.Application; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Cursor; import javafx.scene.Scene; import javafx.scene.control.*; import javafx.scene.effect.InnerShadow; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyEvent; import javafx.scene.input.MouseEvent; import javafx.scene.layout.*; import javafx.scene.text.Text; import javafx.stage.Stage; public class TextFieldSample extends Application { @Override public void start(Stage primaryStage) { EventHandler
mouseEntered = new EventHandler () { public void handle(MouseEvent event) { System.out.println(((Text) event.getSource()).getText()); } }; Text h = new Text("H"); h.setOnMouseEntered(mouseEntered); Text e = new Text("E"); e.setOnMouseEntered(mouseEntered); Text l1 = new Text("L"); l1.setOnMouseEntered(mouseEntered); Text l2 = new Text("L"); l2.setOnMouseEntered(mouseEntered); Text o = new Text("O"); o.setOnMouseEntered(mouseEntered); HBox hbox = new HBox(); hbox.getChildren().addAll(h, e, l1, l2, o); VBox root = new VBox(); root.getChildren().addAll(hbox); Scene scene = new Scene(root, 300, 250); primaryStage.setScene(scene); primaryStage.show(); } public static void main(String[] args) { launch(args); } } The next version of javafx8 will be a TextFlow to Word RTF.
A TextFlow simplifies processing.http://download.Java.NET/jdk8/jfxdocs/JavaFX/scene/text/textflow.html
Published by: shakir.gusaroff on March 2, 2013 19:15
-
Hello
I am new to InDesign scripting in javascript. I would like to know if there is a way to get the position of the last character in a text frame that is busy? I need this because I want to calculate the number of characters is hidden (overflow text) via the script.
I looked in the forums about this, but I think it is always a script to alert if there is too much text or not.
I'd appreciate any help!
Well, let's say myFrame is a flowing text block.
Thus, the last character in this context would be
myFrame.characters-[1];
To calculate the number of characters to spill, select the
framework text overflow and run this script:
myFrame = app.selection [0];
myParentStory = myFrame.parentStory;
Alert ("number of characters to spill is
"+ myParentStory.characters.itemByRange (myFrame.characters [-1],".
(myParentStory.characters [-1]) .length-1);
Ariel
-
Get the matrix of global position for each character of text
This message follows this
.I need to get the position and orientation of the first and the last character in a text frame art, in other words, I need its matrix.
There are a number of functions of the API that is supposed to help you; An excerpt from the ATESuites.h file
/ * Return of this race transformation matrix.
The returned array spesify transformation complete the given execution. You must transform the original by IGlyphRun::GetOrigins() and
Concat with ITextFrame::GetMatrix() in order to get the location of the glyphs.
*/
ATEErr (* GetMatrix) (GlyphRunRef glyphrun, ASRealMatrix * ret);
Therefore, get the matrix of the first character or glyph should look like this:
AIErr
VMGetFirstTextMatrix (AIArtHandle textArt, AIRealMatrix * matrix)
{
ASRealMatrix frameMatrix, glyphMatrix;
ASRealPoint firstPoint;
Try
{
TextFrameRef ateTextRef;
sAITextFrame-> GetATETextFrame (textArt, & ateTextRef);
TextFrame ITextFrame (ateTextRef);
ITextLinesIterator lnItr = textFrame.GetTextLinesIterator ();
TxtLine = lnItr.Item () ITextLine;
IGlyphRunsIterator grItr = txtLine.GetGlyphRunsIterator ();
GlyphRun IGlyphRun = grItr.Item ();
IArrayRealPoint pointArray = glyphRun.GetOrigins ();
firstPoint = pointArray.Item (0); dating bad values!
frameMatrix = textFrame.GetMatrix ();
glyphMatrix = glyphRun.GetMatrix ();
Scissor-> AIRealMatrixConcatTranslate (& glyphMatrix,
(firstPoint.h, firstPoint.v);
Scissor-> AIRealMatrixConcat ((AIRealMatrix *) & glyphMatrix,)
(AIRealMatrix *) & frameMatrix,.
matrix);
return kNoErr.
}
catch (ATE::Exception e)
{
return e.error;
}
return kNoErr.
}
But the coordinates is returned in frameMatrix (tx and ty) or the firstPoint are clearly wrong. It seems they have a lag that is allmost constant. The values of x are about 7664 too great points (give and take a few decimals), and values are about 7893 too large (also give and take a few decimals).
I'm puzzled by this, reall because I need to get precise positions...
Well, it worked eventually.
The ITextFrame::GetMatrix() method generally returns an identity matrix, unless I moved or transformed the object frame of text on the artboard. For example, if I duplicated a text image object by dragging the object while pressing the alt key, this matrix will be transformation relative to the object that it was created. Since it is a relative transformation, it is not hard or soft coordinates, so it is foolish to harden or soften (in fact, you shouldn't do).
Then the IGlyphRun::GetMatrix() method typically returns the identity matrix, but will contain a rotation for example, if the object is a text on a path.
Finally, the IGlyphRun::GetOrigins() method returns hard coordinates for each glyph, but without the frame matrix transformation. This method is insensitive to the GetCoordinateSystem / SetCoordinateSystem functions of the following system and returns the hard coordinates launch.
Thus, in order to get the actual art contact information for the Board of Directors of a glyph, the following code will do:
IArrayRealPoint pointArray = glyphRun.GetOrigins();
AIRealPoint firstPoint = pointArray.Item(0);
AIRealMatrix frameMatrix = textFrame.GetMatrix();
sMath->AIRealMatrixXformPoint( &frameMatrix, &firstPoint, &hardPoint);
sHardSoft->AIRealPointSoften( &hardPoint, &glyphPoint);
In order to obtain the matrix of the absolute position of the first glyph of an art of text frame, the following function seems to work:
AIErr
GetFirstTextMatrix( AIArtHandle textArt, AIRealMatrix *matrix)
{
ASRealMatrix frameMatrix, glyphMatrix;
ASRealPoint firstPoint, softPoint, hardPoint;
try
{
TextFrameRef ateTextRef;
sAITextFrame->GetATETextFrame( textArt, &ateTextRef);
ITextFrame textFrame( ateTextRef);
ITextLinesIterator lnItr = textFrame.GetTextLinesIterator();
ITextLine txtLine = lnItr.Item();
IGlyphRunsIterator grItr = txtLine.GetGlyphRunsIterator();
IGlyphRun glyphRun = grItr.Item();
IArrayRealPoint pointArray = glyphRun.GetOrigins();
firstPoint = pointArray.Item(0);
sHardSoft->AIRealPointSoften( &firstPoint, &softPoint);
frameMatrix = textFrame.GetMatrix();
glyphMatrix = glyphRun.GetMatrix();
sMath->AIRealMatrixXformPoint( &frameMatrix, &firstPoint, &hardPoint);
sHardSoft->AIRealPointSoften( &hardPoint, &softPoint);
sMath->AIRealMatrixConcat( (AIRealMatrix*) &glyphMatrix,
(AIRealMatrix*) &frameMatrix,
matrix);
matrix->tx = softPoint.h;
matrix->ty = softPoint.v;
return kNoErr;
}
catch (ATE::Exception e)
{
return e.error;
}
}
But, this has not come easily, and I must be allowed to blame poor documentation on this subject...
Agnar
-
How to get the value of a selected character unicode?
Hi all
How to get the value of a selected character unicode?
The content property of a 'Character' InDesign object is a simple Unicode string. For access to the various characters is a basic javascript operation, and a google gives this as a good first result: http://www.w3schools.com/jsref/jsref_charCodeAt.asp
Therefore, the value of a selected character unicode is
App.Selection [0]. Characters [0].contents.charCodeAt (0)
-
Get the second last occurrence of the character
Hello
I want to get the second last occurrence of '_' of the next string and take the 3 characters before that.
No one knows how to do it in a single query?
The string is
ALS_AKM-G-2500_BASED_pre_paid_akm_mis_stv1SQL> with my_str as 2 (select 'ALS_AKM-G-2500_BASED_pre_paid_akm_mis_stv1'col 3 from dual 4 ) 5 select substr(col, instr(col, '_', -1, 2)-3, 3) 6 from my_str; SUB --- akm 1 row selected.
-
the situation: I erase all the contents of Documents and sending them to the Recycle Bin. This is in preparation for a new backup of Documents to an external hard drive device.
What continues to be: whenever I press DELETE I get the following error message, "file contains elements whose names are too long for the Recycle Bin." -I combed through all the names in the Documents & shortened all the time, but I always get this error message.
questions: How can I identify & locate offend him, too long file name of the file or files? What is the space limit for the length of the file/folder names + character? is it possible to change the settings to correct this extremely frustrating loop somehow, I'm in?
I would greatly appreciate any help/tips on the issue. Thank you!Hello
you keep insisting on 'my
There is no "My Documents" on Vista
It's only 'Documents '.
Windows Vista renames 'My Documents' as, simply, 'Documents '. "My music", "My pictures" and "My videos" have also lost their prefix and moved to directly under the directory (profile).
-
Get the AUTO_PAGE_NUMBER value
Hi all
How to get the value of "AUTO_PAGE_NUMBER" using indesign javascript.
Thank you and best regards,
Robert S
I think that he tries to get the value for a SpecialCharacters.AUTO_PAGE_NUMBER.
Unfortunately there is no simple way to do it.
in very simple cases, you can try (assuming myChar is the character of SpecialCharacters.AUTO_PAGE_NUMBER)
myChar.parentTextFrames [0].parentPage.name
but things get complicated if you page numbering scheme also contains a section prefix or other stuff like that
-
Get the page of history as: subject: history
Hello
I was wondering.
In Firefox, you can enter a few specific pages using the subject:-prefix
Subject: config
Subject: empty
...But is there also something similar to this to get the story? (subject: history).
It is not necessary should be with everything; just that I can pick up the story with typing something into the address bar.Thanks for reading,
CosmeticosOr if you want the multi-column list of the dialog library ('view history') you can try this:
chrome://browser/content/places/places. XUL
When I test which, it starts with bookmarks and I have to get on with the story.
BTW, I'm not sure that it is safe to make changes when it is displayed in a tab...
Maybe you are looking for
-
OK =.
-
I'm running the last Aurora (8.0a2), although this problem existed also in 7.0a2. I have the add-on Compatibility Reporter extension installed, so I should be able to install add-ons for older versions of Firefox, and I can't. However, some Add - ons
-
How to upgrade software Epson printer XP-710?
I get so far with my Epson printer software update, and when I go to Apple, as said (see the screenshot below), I get lost. Apple always seems to take me to the update of Yosemite, Captain, but not where I can update my printer. My printer has AirP
-
Dear Sony Xperia I have several questions about the latest Sony user interface I have now in my Compact Z5. 1: I couldn't put a widget on the home screen. A simple widget like weather from yahoo and other weather apps I tried, cannot be put to the ho
-
Hey guys,. Ive recently bought the phone from vodafone ireland which means that I am network-locked for them. Unfortunately I may I have hard-locked my phone that I entered the wrong code unlocking network more than 5 times and the simlock counter sh