Solved

Cannot retreive field value

Posted on 2004-08-31
3
198 Views
Last Modified: 2013-12-18
I have documents that may contain up to ten fields po_link1 po_link2 etcc.....

THese fields do not exist physically on the form
I can seem them if they are created in the doc properties box

I am not able to retreive their values

I have tried on the form in a new field using both below. Link1 := @If(@Contains(po_link1;"");"";po_link_1)
@Trim(Link1)
Link1:=  po_link1;
@Trim(Link1)

I also tried in script using and they both fail
POLinks(1) = prdoc.getItemValue("po_link1")
POLinks(1) = prdoc.po_link1(0)
How do I retreive the po_link1 etc... values??
0
Comment
Question by:imjamesw
3 Comments
 
LVL 31

Assisted Solution

by:qwaletee
qwaletee earned 175 total points
ID: 11945082
POLinks(1) = prdoc.po_link1(0)

That should work, assuming it exists on the document.  You can try:

If prdoc.hasItem("PO_Link1") Then
    Print "Found PO_Link1 value, assiging to POLinks(1)"
    POLinks(1) = prdoc.po_link1(0)
Else
    Print "No PO_Link1 field exists"
End If
0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 175 total points
ID: 11945142
Very odd. What's the item's info as shown in the Properties box? Did you try to just create fields on the form with the name, Computed, with the same value, i.e. just po_link1?

And in script:
    item= prdoc.getfirstitem("po_link1")
    if item is nothing then print "Nothing!"

Are you sure that it is po_link1 and not po_1ink1?

Easiest way of showing them all in Formula:
- a CfD field with @Trim(po_link1:po_link2:...)
0
 

Author Comment

by:imjamesw
ID: 11945355
Thanx I will use you suggestions
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now