[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

The View shows the Checkbox's synonym

Posted on 2006-06-29
7
Medium Priority
?
308 Views
Last Modified: 2013-12-18
I've a checkbox with many choices e.g. Hardware | A4

The Form shows Hardware that's OK but the View shows A4
How can I get the View show Hardware instead of A4?
0
Comment
Question by:verto33
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 100 total points
ID: 17009592
Use a translation formula:

    @Replace(CheckBoxField; "A4":"A5":"A6":....; "Hardware":"Software":"Tupperware":...)
0
 
LVL 13

Assisted Solution

by:CRAK
CRAK earned 80 total points
ID: 17012838
I often throw in 3 fields to (A) allow dynamic changes to the lists of choises and (B) speed up views by less computations.

1st usually has a suffix "_choises" (e.g. "myField_choises", text, multi value, comp. for display, hidden)
Formula could be anything like "choise1|A":"choise2|B", a @DbLookup etc.

2nd ("myField", editable, radio, checkbox, combo or such) retrieves its values from that field (_choises".
This would be your current field.

I usually give the 3rd a prefix "_selected" (e.g. "myField_selected", computed, multi value, hidden).
Formula:
input_lst := myField_choises;
select_lst := myField;
input_scrambled_selection := @ReplaceSubstring(input_lst; select_lst; "");
input_delete_unscrambled := @Replace(input_lst; input_scrambled_selection; "");
@Trim(input_delete_unscrambled)

(input_lst and select_lst refer to the 2 fieldsnames that were used ealier. Change those if applicable; the rest of the formula is reusable)

This will deliver e.g "choise1|A" (or in the case you provided: "Hardware|A4").

You perform a @Left(....; "|") on the result.
The last line of the 3rd field's formula would then read:
@Left(@Trim(input_delete_unscrambled); "|")

Or, if you dont mind the computation in a view's column:
@Left(myField_selected; "|")
0
 

Author Comment

by:verto33
ID: 17016902
I guess I should ad the @Replace formula to the Input Translation.
I did it but it is as before, in the view (in the column) I see still A4, A5 etc.

I will test the command and if nok I remove the synonym from the checkbox.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 18

Assisted Solution

by:marilyng
marilyng earned 80 total points
ID: 17017304
Verto33,

where did you put the translation formula?  on the form or in the view?  I think you put it in the form?  Try putting it in the column formula on the view.

As both sjef and CRAK indicate, when you have a formula with an alias, Hardware|A4, and you select "Hardware"  the "Hardware" shows up on the form, but the actual value is "A4" which shows up in the view.

So you either have to use the translation formula in the VIEW as sjef suggests, or as CRAK suggests, add another field that "translates" the value so you can use THAT field in the view.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 17017399
This is all because the view doesn't know anything of the form. As Marilyn says, the alias is stored in the document, but the selected value is only known in the form, and nowhere else. That means that you have to do some translation in the view. But, whenever you change the form and add new values and aliases, you'd have to change the view as well!
0
 

Author Comment

by:verto33
ID: 17017492
Yes, I put it on the Form.
When I saw that I've to use the Translation formula I immediately thought on the Input Translation of the field because the column has no other part as Column Value.

It works now, thanks.

0
 
LVL 13

Expert Comment

by:CRAK
ID: 17020667
Sorry I wasn't there for you today. Glad to hear you've got it working with the help of my friends.
Thanks for the point & help, all!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…
Suggested Courses

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question