Visual Web Ripper Logo Visual Web Ripper Logo
Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
Getting project element names
chifon
#1 Posted : Saturday, February 26, 2011 1:16:33 AM
Groups: Registered
Joined: 2/26/2011
Posts: 1
Location: israel
Hello,

How do I get the project's different element names?
I want to get the elements before running the project.
lets say I have a content element named "First Name" and I want to set it as a label.Text

Here is what I got so far:
Code:

WrProject project = WrProject.LoadByName( "FirstAPI" );
project.ViewBrowserCollector =  false ;

lblValue1.Text = ???????  ;

WrProcessor processor = WrBrowserProcessor.RunProject(project);


also I would like to know how do I set values for project elements using the API

thanks
Sequentum Support
#2 Posted : Tuesday, March 01, 2011 3:42:56 AM

Groups: Administrators
Joined: 4/10/2010
Posts: 1,239
Location: Sydney, Australia
This is not usually something you would want to do, but I guess there are exceptions.

lblValue1.Text = project.Template.SearchTemplateByName("template_name").GetContentByName("content_name").FixedValue;

project.Template.SearchTemplateByName("template_name").GetContentByName("content_name").FixedValue = lblValue1.Text;
Users browsing this topic
Guest
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.4 RC1 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.058 seconds.