Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | conditional text not working | ||||||
---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | hermann | ||||
Component: | code | Assignee: | AOO issues mailing list <issues> | ||||
Status: | CONFIRMED --- | QA Contact: | |||||
Severity: | Normal | ||||||
Priority: | P3 | CC: | elish, haxwell, issues, Robin_Colton | ||||
Version: | OOo 1.1 Beta2 | Keywords: | oooqa | ||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows, all | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | 4.1.0-dev | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
hermann
2003-06-26 20:35:21 UTC
The variable you want is Page not [Page Numbers]. I'm not sure what statistics should be. Try the following (and then Page as the variable name) condition: [Page Number] == 1 then the rest of it.. [Page Number] == 0 then the rest of it.. [Page Numbers] and [Statistics] are both zero because they haven't been defined as anything yet, so that is why you always get them as equal. Changing this issue to not a bug. . but if you look in the online help, you see that [Page numbers] is the actual page and [Statistic] is the number of the last page. As I told befor, both work right an give the right result back if I use them in my document as field. But if I use them in conditional text they do not work. If I use [Page Numbers] == "1" then it works right, and if I use [Statistiks] than its right too. but again [Statistics] == [Page Numbers] is wrong And wy are these variables not defined? try from Menue ==> insert ==> Page or ==> insert ==> page count and look what OOo inserts (via <Strg>+F9) Created attachment 7315 [details]
Some conditional Text Fields
sorry, [Page Numbers] == 1 or [Page Numbers] == '1' or [Page Numbers] == "1" only work on one single Page. I created an attachment to show what I mean. (I come to this because I tryed to insert some text only on the last page of my document.) Try putting anything in between your ' ' and " ", and you'll get the same result. ie [Page Numbers] == '1' then do this will get the same result as [Page Numbers] == '2' or == '3', &ct. I'm not sure, but ' ' is for enclosing text, and the result you are hoping for is numeric. Also, I don't think [Page Numbers] is actually defined for conditional text, try page == 1 or page == 2, with the numbers not in ' ' or " ". You'll have to give me a page number for help, but I believe [Statistics] isn't meant to be read as a variable name, its meant to signify a field that is inserted in the document, for instance insert > field > page number. . Hi, sorry for my missunderstanding. Now I found in the help that I can only use some Formula and not the same Fields that I can insert with the menu. But I think the ability to can insert the actual Page and not only the Pages of the whole Doc was a needed thing. So changing this issue to enhancement would be nice. HI->ES: Please take a look before pass it to BH Reassigned to BH hkienlein, first, sorry for the long delay in getting back to you on this issue. Can you give more clarification on what you would like to see in OOo? It appears from the comments that you were using the [Page Numbers] variable incorrectly. But now that you understand how it was meant to be used, what would you like to see in addition to that? Please try to be as detailed as you can. If no new information is available by March 8, 2005, I recommend this issue be closed. It probably should be put in a new issue regardless, but thats for another day. Hi haxwell, I´m looking for a way to realize on wich page in actual document I be. And I tried this with conditional text. So I search for a way to do following: if I be an the last sied, I would insert some text, e.g. 'Here is the last side in Document', but if I was on another side, I like ton insert some other text instead. But I don´t know wether this is realized with 2.0Beta, or there is another way to do this. With 1.1.x there wasn´t a way to work with contitional text. (And with Basic this was not really fast to do) regards Hermann Kienlein OpenOffice.org Issue Tracker - Feedback Request. The Issue you raised is currently 'Unconfirmed' pending review, but has not been updated within the last 3 years. Please consider re-testing with one of the latest versions of OOo, as the problem(s) may have already been addressed. Either use the recent stable version: http://download.openoffice.org/index.html or consider trying the new OOo 3 BETA (still in testing): http://download.openoffice.org/3.0beta/ Please report back the outcome so this Issue may be Closed or Progressed as necessary - otherwise it may be Resolved as Invalid in the future. You may also wish to search for (and note) any duplicates of this Issue that may have advanced further by checking the Issue Tracker: http://www.openoffice.org/issues/query.cgi Many thanks, Andrew Cleaning-up and Closing old Issues as part of: ~ The Grand Bug Squash, pre v3 ~ http://marketing.openoffice.org/3.0/announcementbeta.html To grep the issues easier via "requirements" I put the issues currently lying on my owner to the owner "requirements". I'm not able to recreate this since it's not bug. Condition Actual result Expected result page numbers = statistics last page is true last page is false statistics = 2 last page 2 another last page AOO420m1(Build:9800) - Rev. 1586681 Rev.1586681 Win 7 |