Tags:
create new tag
view all tags

Question

Going a little nuts here...

I am building a page naame out of pieces

the format is: Product-Property_Project

either or both of Property and Project can be missing

in one pathway, they come in set or unset and life is good

in the ther pathway, Property arrives as set to a string or set to a space. Aargh

I can determine if Project is defined, but I'm going crazy trying to determine if Property is defined BUT not equal to a space.

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- VickiBrown - 18 Jul 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Currently, this is what I'm using to work around the question. Anything "better"?

%CALC{"$IF($LENGTH(%FORMFIELD{"PropertyName"}%) > 1,%FORMFIELD{"PropertyName"}%,%FORMFIELD{"ProductGroup"}%)"}%

that is, only a "blank" property name field will ever be only 1 character long.

-- VickiBrown - 26 Jul 2007

Sorry. closing this after more than 30 days...

-- PeterThoeny - 03 Sep 2007

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-09-03 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.