PDA

View Full Version : Paragraph SetText



rotac
06-16-2006, 10:41 PM
Hi,

When I click a button on my page 1, I want to jump page 2, and setText in paragraph 1 of my page 2.

How can'I do.

My code "on click) is:
Page.Jump("Page2");
Paragraph.SetText("Paragraph1", "New paragraph text...");

Is it posible ???

Thx

Rotac

pjborg
06-16-2006, 10:47 PM
At the Page.Jump action, it jumps to Page 2, so it won't complete the next action, because it has already jumped to Page 2!

rotac
06-17-2006, 08:33 AM
Thanks a lot

Rotac

stickck
06-21-2006, 06:46 AM
but you could store what you want in Paragraph1 on page 2 into a Global variable just before the Page Jump action. Then on the Page Preload for page 2, load that variable into the paragraph object.

Chris

TJS
06-21-2006, 07:06 AM
Another option that works depending on your design is to create a "template" page that the user will never see with objects that you want to reuse on all pages. Then set your other pages to inherit the objects from the template. I use this to simplify things like global navigation items and page titles. Each object on the template must be named uniquely across the whole project and each will be manageable from any page they are inherited on.

Hope that make sense...