Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing
|Summary:||conditional text not working|
|Component:||code||Assignee:||AOO issues mailing list <issues>|
|Status:||CONFIRMED ---||QA Contact:|
|Priority:||P3||CC:||elish, haxwell, issues, Robin_Colton|
|Version:||OOo 1.1 Beta2||Keywords:||oooqa|
|Issue Type:||DEFECT||Latest Confirmation in:||4.1.0-dev|
Description hermann 2003-06-26 20:35:21 UTC
Hi *, pleasse try following: I have a three-page-document. On every page I insert some fields: [Page numbers] and [Statistics]. This works fine on every side. ( first side: 1 3, second side 2 3, third side 3 3 Now I use conditional text: [Page Numbers] == [Statistics] equal ; non eqal I get always equal as text.
Comment 1 maxkennedy 2003-07-01 09:03:16 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.
Comment 2 h.ilter 2003-07-01 13:25:47 UTC
Comment 3 hermann 2003-07-01 15:55:40 UTC
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)
Comment 4 hermann 2003-07-01 18:05:27 UTC
Created attachment 7315 [details] Some conditional Text Fields
Comment 5 hermann 2003-07-01 18:09:02 UTC
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.)
Comment 6 maxkennedy 2003-07-03 07:41:28 UTC
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.
Comment 7 maxkennedy 2003-07-05 07:07:24 UTC
Comment 8 hermann 2003-07-07 18:50:50 UTC
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.
Comment 9 h.ilter 2003-07-08 14:56:24 UTC
HI->ES: Please take a look before pass it to BH
Comment 10 eric.savary 2003-07-15 08:12:15 UTC
Reassigned to BH
Comment 11 haxwell 2005-02-22 17:14:10 UTC
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.
Comment 12 hermann 2005-02-26 08:35:51 UTC
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
Comment 13 ace_dent 2008-05-16 02:14:12 UTC
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
Comment 14 bettina.haberer 2010-05-21 14:47:40 UTC
To grep the issues easier via "requirements" I put the issues currently lying on my owner to the owner "requirements".
Comment 15 Rcolton 2014-02-15 18:53:32 UTC
I'm not able to recreate this since it's not bug.
Comment 16 Edwin Sharp 2014-04-18 11:32:54 UTC
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