How to Add a Linefeed to the Very End of a TextFrame's Contents
(IND 5.0, Actionscript)
Hi all,
I need to be able to add a linefeed ("\n") to the very end of a TextFrame's contents, which may include any combination of tagged and untagged texts, and tagged and untagged image frames.
There seems to be an endless variation of circumstances, each of which require a specific solution.
For example:
If the last run of the Text is tagged, then I need to append the "\n" to the that last tag's contents.
If there are no Tags in the Text, then I can append the "\n" to the TextFrame's contents.
If the TextFrame is Tagged, but the last letter(s) in the Text are untagged - I don't know what to do.
If the last object in the TextFrame is an Image Frame, then I don't know what to do (you can't add the "\n" to an image's contents).
In short, is there some catch-all solution for adding a "\n" at the very end of a TextFrame's contents, without the Tags on the Text being removed and without causing a failure due to trying to add "\n" to an Image's contents?
TIA,
mlavie
Harbs is crazy busy right now, and I don't really understand your issue.
Why do you need to add a linefeed? Do you mean a paragraph return or soft return?
Something like this might be what you are after:
textFrame.insertionPoints.item(-1).contents = "\r";
or
textFrame.insertionPoints.item(-1).contents = SpecialCharacters.FORCED_LINE_BREAK;
Harbs
Similar Messages
-
How to add Navigation Level to the Portal?
Hi All,
How to add Navigation Level to the Portal?
for example:
1st Level is the Role
2nd Level is Worksets/Folders
I want that the 3rd Level will contain more Worksets/Folders and will be under the 2nd level and not in the "Detailed Navigation".
I tried to change the "Number of display levels" in the framework page but it didn't help.
Attached a picture with the required result (of course, for my roles)
http://img457.imageshack.us/my.php?image=toplevelnavigation7xy.jpg
Thanks, OmriHi Omri,
in fact, almost one year ago we did something similar on a project basis, but as already stated here, this was done by modification. What we did was providing a dropdown box within the masthead, containing the first level, and the second and third level now have been displayed where normally the first and second level are. That was a ten days solutions, some very fine granulated work. But nice
Anyhow, nowadays this can be more easy using the LightFrameworkPage (if that's OK for your purpose) and the Navigation Tag Library, see http://help.sap.com/saphelp_nw04/helpdata/en/42/f35146a7203255e10000000a1553f7/frameset.htm for details.
Hope it helps
Detlev -
How to add scroll function in the applet launched by Java Web Start?
I have Java Web Start installed in order for the applet to launch.The applet size: width:700 height:1000
my compuer resolution:800*600
the applet launched by Java Web Start can only be seen partly,especially height.How to add scroll function in the applet launched by Java Web Start?
Thanks for help.
email:[email protected]You can very easily add a JScrollPane manually between the Applet and your content. Perhaps it would be beter if javaws did this automatically. In the browser, an applet can be any size. In Java Web Start an applet is directly contained within a JFrame, so it cannot be smaller than the minimum size of a JFrame, or Larger than the max.
-
How to add 2 rows in the form layout?
In the detail page,form layout only one row pick up from database and it displays please anyone have idea about how to display 2 rows or 3 rows in a page?
how to add 2 rows in the form layout?
It's very urgent
Thanks in advanceNo. You can only achieve this with smart custom templates. Here is sample code which will display multiple employees in form layout:
<af:forEach items="#{bindings.EmployeesTable.rangeSet}" var="row">
<af:panelForm rows="1" maxColumns="2" width="10%" id="RegionsFormItems">
<af:inputText id="EmployeesEmployeeId" value="#{row.LastName}" label="EmployeeId" .... />
<af:selectInputDate id="EmployeesHireDate" value="#{row.HireDate}" label="HireDate" ...... >
<af:convertDateTime pattern="#{nls.datepattern}"/>
</af:selectInputDate>
</af:panelForm>
</af:forEach>
Steven Davelaar,
JHeadstart Team. -
How to add a page in the SAP Scripts
Hi All,
I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
Please help me out in this.
Thanks,
Praveennew page will create in sap scripts using new page command.
you have to set condition like after some number of records displayed in page new page has to be trigger.
ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
Here you can use NEW PAGE COMMAND .
IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
Reward if useful. -
How to add log messages in the sever/webui objects?
Hi,
I am new to the OA Framework.
Can any one share any information in how to add log messages in the sever/webui objects?
What are the beans I need to use to show in the diagnostic page?
Can I get sample code for this log staments?
Thanks in advance,
PadmaHello. This forum is for reporting problems with the published Oracle documentation. You have a better change of getting a reply if you post your question on the Database - General forum.
Regards,
Diana -
I tried downloading a movie, at the very end it said there was a problem. No explanation, now it's not in my itunes library and when I try to download again it tells me I have already rented this movie do I want to rent again? I don't want to pay for it a second time, how do I receive a credit?
If it's not in the Movies part of your library, then does the Store > Check For Available Downloads menu option download it ? If not then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption -
How to add an item into the Newsstand
How to add an item into the Newsstand. Please do NOT reply using "tech-language." Use standard- normal everyday English. Thanks,
Don Otlin
Franklin Square, NYOpen Newsstand. Tap on the "Store" button in the upper right. Any newspaper or magazine you download from the store will appear in Newsstand.
-
CRM IC Winclient - How to add new fields in the BP Search of TRX CIC0
Hello Experts,
I want to know how to add new fields in the BP Search of TRX CIC0. In the HTML that we're using here I need to add the URL of the BP.
Can you help me?
Thanks in advance.
Caíque EscalerHi
make append to tables in se11 - CCMBP1FIELDS, CCMBP2FIELDS
in spro in Define customer-specific search control -> mark fields with X.
and enhance html template CRM_CIC_SEARCH_DISPLAY. -> tcode smw0, look for package CRM_CIC_COMPONENTS for html CRM_CIC_SEARCH_DISPLAY. export it from SAP, edit, and import.
you will need to enhance function module used for searching - you will find him in spro in Search Strategies.
Regards
Radek -
How to add new fields to the system form (Ex.expenses to a/r invoice form)
hi
can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
i want to add expenses field to system a/r invoice form and connect data base also.
i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
reply soon plz..
thankQIf I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.
-
How to add new fields to the DME file in F110
Hi,
We have a requirement add new fields to the file that is used in F110.
.I did go in to DMEE transaction but I hae no idea how to add new fileds to the existing file.
Can anybody please help me in resolving the issue.
Thanks
Venkat
Edited by: Venkat R on Jun 8, 2009 8:45 AMHi,
There is no function module for that, We have created our own function module and attached to that field.
Refer the below code. This will fetch the document number.
DATA: lwa_item TYPE dmee_paym_if_type,
l_fpayp TYPE fpayp,
l_fpayhx TYPE fpayhx,
first_flag TYPE c,
lv_lifnr TYPE lifnr,
voucher_id TYPE string,
voucher TYPE string,
invoice_id TYPE belnr_d,
voucher_len1 TYPE i,
voucher_len TYPE i.
TYPES:
BEGIN OF lt_regup,
xblnr TYPE xblnr1,
belnr TYPE belnr_d,
END OF lt_regup.
DATA: lt_regup TYPE STANDARD TABLE OF regup,
lv_regup TYPE regup.
Hope this helps.
Raja.A
Edited by: Raja.A on Feb 16, 2011 7:17 PM -
How to add new fields in the EBP front end..
Hi All,
Can any one let me know the process of how to add new fileds in the shopping cart creation screens by using the "Tag Browser" option in the Object navigator.
Best Regards,
Mahesh. JHi
<b>Please go through the following links for more details and examples -></b>
http://help.sap.com/saphelp_47x200/helpdata/en/a2/8c6eeb2d8911d596a000a0c94260a5/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/d3/5ecbe22a8a11d5991f00508b6b8b11/frameset.htm
This will definitely help.
<u>For adding customer fields to the Shopping cart, you need to refer SAP OSS Bote 672960 and 485891.</u>
Do let me know, incase you need any other details.
Regards
- Atul -
How to Add multiple entry to the group policy security filtering
How to Add multiple entry to the group policy security filtering
Is there any way we can add multiple entry to the Domain group policy Security filtering tab.Currently its not allowing to add more then one entry at a time.
Getting Error like "only one name can be entered,and the name cannot contain a semicolon.Enter a valid name"Hi
Are you trying to add more users or groups through Group Policy Management Security Filtering tab?
Try right clicking on the policy and then edit
Then in Editor Right click on the name of the policy and Properties
Security tab and add user or group from this tab. Just make sure if you are adding user or groups "Select this object type" has
the correct option also "From this Location" is set to your entire directory not the local server.
Update us with the above.
Thanks -
How to add one column to the standard t.code : CAT2.
Hi,
How to add one column to the standard t.code : CAT2.
thanksHi Chinna
see the enhancements by using SMOD <b>CATS0007</b> , or <b>CATS0012</b> and create a project using CMOD and you can implement your requirement.
Hope This Info Helps YOU.
<i>Reward Points If It Helps YOU.</i>
Regards,
Raghav -
How to add some days to the current system date
can anyone help how to add some days to the current date i.e if today is 3-12-2007 and if v add 15 more days then the output should be 18-12-2007
RajeshChandan wrote:
First of all thanks a lot ,and coming to the question i dont mean to change the sysdate instead i want to write a prg. where after entering the current date it should effect with the no.of days that i have given but not the system date .if u can answer please reply for thisAh, I see. In that case, you can use an instance of GregorianCalendar and use it's add(...) method to add days, months, years etc. to it.
http://java.sun.com/javase/6/docs/api/java/util/GregorianCalendar.html
Good luck.
Maybe you are looking for
-
Read Tilda separated file from Application Server
I have a requirement to read a tilda separated file from application server and write a tilda separeted output to application server. Please suggest how to to get data from tilda separated file to internal table ? and also How to create a tilda separ
-
Like other people on here, I, too, have had problems with downloading the new QT. I receive the same error message. I've tried what's been suggested in other threads (Opening "Regedit"), but I cannot acces it for more than five seconds or so. I have
-
Expert, We are buying an engine assembly from our Vendor, but there is no visibility for us to verify that Fixed Process Control(FPC) (quality)requirements have been met by the engine. So we need to know the details of the inner parts of the engine a
-
Placement of cursor - when ADD button, place cursor on first item in row
I have several collections on a page. The third collection CATCH_C is usually empty. The user can tab to ADD button. Currently, the cursor is then placed at the first item on the page. I would like it to be place in the first item in that collection.
-
HT4527 how do I download music from my mac to my ipad?
My Ipad tellls me I can't turn on home sharing. No idea why.