Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Info path help ?

  Asked By: Nelson    Date: Jun 13    Category: Sharepoint    Views: 1081

I need to disply hyperlink in info path task edit form. how to do
this.
i desiged infoptah with one hyper link colum, now i am passing link
field through
TaskProperties.ExtendedProperties["Item"] = "<a href='" + url + "'>" +
workflowProperties.Item.DisplayName + "</a>"
o/p i am seeing like
item : <a href='" + url + "'>" + workflowProperties.Item.DisplayName
+ "</a>
like this but link it not showing...
and one more thing in taskcomplet activity . once is it approved, i
wan to display name of user who approved that document in OUTCOME
property in tak.
ple help me it's urgent plz ?

Share: 

 

5 Answers Found

 
Answer #1    Answered By: Candy Walter     Answered On: Jun 13

I would guess the reason that it is not showing  up correctly is the html you are
trying to pass will be treated as text. Forms server generates the html so it
would escape it so it won't cause any issues.

Something that might work is to pass the url and display  name in the
ItemMetadata file. Then use a Hyperlink control in InfoPath and have the address
and the display point to your ItemMetadata datasource. This should then generate
the correct link  on the form.

 
Answer #2    Answered By: Alka Sarabhai     Answered On: Jun 13

this is my medatdata

<z:row xmlns:z="#RowsetSchema"
ows_Item=""
ows_List=""
ows_Site=""
/>

these are showing  in taskedit form.
item is hyperlink  filed. mean in infopath when i added i put this item
datatype is hyperlink(anyURl)

but when i passing  manully or though code the hyperlink displaying as text.
can u explain this plz..

 
Answer #3    Answered By: Eashan Nadkarni     Answered On: Jun 13

i used hyperlink  field , in propeties i set datasoue as ( medatdata item
field).
in code
TaskProperties.ExtendedProperties["Item"] = "google.com"
in the form  now it showing link  but not link to google.com it giving
http://myservername/_layout

 
Answer #4    Answered By: William Odom     Answered On: Jun 13

My initial thought is you may need to fully qualify the url if it is not on your
site. i.e. http://www.google.com. It probably is looking on the server for a
file called 'google.com' in the layouts folder.

So your ItemMetadata file might have

<z:row xmlns:z="#RowsetSchema"
ows_ItemUrl=""
ows_ItemDisplayName=""
ows_List=""
ows_Site=""
/>

You may be able to call the item  from a relative path  but I would try to use a
full url to the item.

 
Answer #5    Answered By: Mia Scott     Answered On: Jun 13

How to send data to associationform
as i said i have three forms
assocation form
intiation form
task edit  form

i want to display  drop down menu with Library name (thse name may change i
need to pass these names through code ) in association for or intioaion form
how can we do ??

 
Didn't find what you were looking for? Find more on Info path help ? Or get search suggestion and latest updates.




Tagged: