Solved

Cannot retreive field value

Posted on 2004-08-31
3
201 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Suggested Solutions

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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