The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Show contents from other cells in graph text/table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1205 Posts

Posted - 06/06/2022 :  05:31:59 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2022b (64-bit) SR1 9.9.5.167
Windows 7 Pro SP1 x64

Greetings!

I follow https://www.originlab.com/doc/Origin-Help/InsLink-to-WksCell and find that the following syntax does not work in graph text objects and text tables:
cell://col(A)[1]
cell://A[1]


How do I effectively show contents from other cells in graph text/table along with my custom text?

Thank you.

---
Andrey

AmandaLu

439 Posts

Posted - 06/06/2022 :  05:43:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

If you copy col(A)[1] and paste link to the graph text object (in the in-place edit mode, right click and select Paste Link), you can see the syntax.

Thanks,
Amanda
OriginLab Technical Service
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/06/2022 :  05:49:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by AmandaLu

Hi,

If you copy col(A)[1] and paste link to the graph text object (in the in-place edit mode, right click and select Paste Link), you can see the syntax.

Thanks,
Amanda
OriginLab Technical Service




Dear Amanda,

I did as you suggested but got a table with the following syntax:
cell://[Data4Graph]Summary!G[1]


However this is not as was promised in https://www.originlab.com/doc/Origin-Help/InsLink-to-WksCell.

Besides if I paste the line above in a text object, then the substitution does not work.

How do I show cell values in a text object?
I ask since graph tables support almost no formatting (bold, italic, etc.).

---
Andrey
Go to Top of Page

AmandaLu

439 Posts

Posted - 06/06/2022 :  06:21:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please right click on the graph object and select Properteis

Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/06/2022 :  06:26:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by AmandaLu

Hi,

Please right click on the graph object and select Properteis





I set the substitution level 1, but the following syntax still doesn't work in the text object:
cell://[Data4Graph]Summary!G[1]


---
Andrey
Go to Top of Page

AmandaLu

439 Posts

Posted - 06/06/2022 :  06:49:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please remove “\” at the beginning.

Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/06/2022 :  06:55:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by AmandaLu

Hi,

Please remove “\” at the beginning.



Done, but see a blank square:


---
Andrey

Edited by - AKazak on 06/06/2022 06:55:54 AM
Go to Top of Page

AmandaLu

439 Posts

Posted - 06/06/2022 :  07:05:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

What’s the content in [Data4Graph]Summary!G[1]? Value? Graph? Image? Arrow?
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/06/2022 :  07:06:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Some useful references on the topic:
https://www.originlab.com/doc/Origin-Help/InsLink-to-WksCell
https://www.originlab.com/doc/en/Origin-Help/Ob-Prop-Program-tab#The_Link_to_.28.25.2C.24.29.2C_Substitution_Level_Drop-down_List
https://www.originlab.com/doc/en/LabTalk/guide/Substitution-Notation

---
Andrey
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/06/2022 :  07:10:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by AmandaLu

Hi,

What’s the content in [Data4Graph]Summary!G[1]? Value? Graph? Image? Arrow?




Numeric value is in in [Data4Graph]Summary!G[1].

---
Andrey
Go to Top of Page

AmandaLu

439 Posts

Posted - 06/06/2022 :  10:10:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

\Cell notation is only used for embedded graph or image. For numeric, please use %, something like
%([Book2]SheetB,@WL,A[1], W)



Thanks,
Amanda
OriginLab Technical Service

Edited by - AmandaLu on 06/06/2022 10:51:27 PM
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/07/2022 :  12:41:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by AmandaLu

Hi,

\Cell notation is only used for embedded graph or image. For numeric, please use %, something like
%([Book2]SheetB,@WL,A[1], W)

Thanks,
Amanda
OriginLab Technical Service




Nice trick!
Thanks.

It is worth adding the tip to Origin help.

---
Andrey
Go to Top of Page

minimax

348 Posts

Posted - 06/07/2022 :  02:01:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
see link below for details:
https://www.originlab.com/doc/Origin-Help/LinkVar-TextLabel
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 06/07/2022 :  02:24:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by minimax

see link below for details:
https://www.originlab.com/doc/Origin-Help/LinkVar-TextLabel



Got it.
Thanks.

---
Andrey
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000