Welcome, Guest
Please Login or Register.    Lost Password?

Dynamic Navigation Bar Statements
(1 viewing) (1) Guest
Convertigo Products
This is the place to ask questions, request for enhancements and more generally discuss about Convertigo products.
Go to bottomPage: 1
TOPIC: Dynamic Navigation Bar Statements
#30
Dynamic Navigation Bar Statements 2 Years ago Karma: 0
I've just started utilizing the Navigation (goTo) statements in web integration. Is there a shortcut to automatically use the connector's target host for the beginning of the address?

For instance, I'm currently using this as the 'Javascript URL' property:

'vm90m050rtm.i-cubed.com/Windchill/netmar...oject/list.jsp'

But 'vm90m050rtm.i-cubed.com/Windchill/' is already the base of the connector. So if I change the target of the connector, I have to change it in multiple places. Is there an easier way?
adam.brenneis
Junior Boarder
Posts: 36
graph
User Offline Click here to see the profile of this user
Location: Raleigh, NC Birthday: 11/11
The administrator has disabled public write access.
 
#31
Re:Dynamic Navigation Bar Statements 2 Years ago Karma: 1
yes :

'context.getConnector().sUrl'

should give you the base url of the connector the transaction is in

You could do some javascript string manipulations to build your target url..
admin
Convertigo Team
Posts: 34
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#62
Re:Dynamic Navigation Bar Statements 1 Year, 10 Months ago Karma: 0
The solution above certainly answers the question. My mistake was really using the goTo statements to begin with. I was using them to set the initial URL in an onTransactionStarted handler.

What I should have been using is the 'Sub path' property of the transaction!
adam.brenneis
Junior Boarder
Posts: 36
graph
User Offline Click here to see the profile of this user
Location: Raleigh, NC Birthday: 11/11
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: elodiee