• martin_wu
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 7
    Replies

Hi all,

 

This is probably quite simple, but I haven't found any sample code anywhere, yet: How can I post to a certain from using the Chatter API?

The background is that a user wants to batch-post the same item to several groups in one go, so I want to built a little utility app that grabs the latest post by that user and copies it to several groups.

Any ideas?

 

Kind regards,

 

Martin

 

Hi all,

 

I have tried to find some sample code on developer.force.com for how to upload to Content via API, unsuccessfully unfortunately. I would basically like to automate the batch-upload of a set of files, creating a new item in Content for each file. 

Does anyone have a link with some sample code in Java that I could use to get started?

 

Kind regards,

Martin

 

Hi all,

 

Someone told me that it would be possible to construct a VF datatable from a number of maps, whereby the maps have the header name as the key and the cell value as the value. Is this feasible? If yes, how would it work? 

Essentially, what I am trying to do is build a datatable from two custom objects, where the number of columns is determined at runtime. If I could pass a list of maps from the controller to the datatable that would help quite a bit. 

 

Kind regards,

Martin

Hi all, 

 

I have a datatable here where I would like to display the status of the objects, which is a simple string property, like this:

 

<apex:dataTable value="{!allStati}" var="stat" id="theTable" cellpadding="4" border="1">

... <apex:column headervalue="Status" value="{!stat.status}" />  ...

</apex:dataTable> 

 

This works fine, if I just pass in the status as the string. However, I would like to display status icons instead of the string, so I have uploaded my icons to the static resources and I am now dynamically concatenating the status string in the getter, like this:

 

String url = '<img width="80" height="80" src="https://na2.salesforce.com/resource/1244040192000/';

if(status == 'Published')

url = url + 'icon_published" />';

else 

url = url + 'icon_not_published" />'; 

 

Since this is standard HTML, I would have assumed that the table would now include the icon. What I get instead in the table is the url to the status icon in plain text form:

 

"<img width="80" height="80" src="https://na2.salesforce.com/resource/1244040192000/icon_published" />" 

 

How can I get the icons to display?

 

Cheers,

 

Martin 

Hi all,

 

I am facing the following task: I have a standard list view of one of my custom objects. In this view, I would like to include a custom button that, when clicked, does the following: 

- update a status field on all selected custom objects to a certain value

- take the user to another view which filters on the new value of the status field 

 

Is this possible somehow? 

 

Kind regards, 

 

Martin

Hi all,

 

I want to create a custom object with information from an incoming email that has a certain structure. For this purpose, I'd need to go through the body text of the email and parse it line by line. What is the best way of doing this? 

 

Cheers, 

 

Martin

Hi all,

 

Has anyone succeeded in building some automation solutions around the Content product in salesforce? In particular, I'd be interested in batch submission of documents with appropriate tagging and languages settings, but also in uploading new versions of already existing docs. Is there an API that can be used for this? 

 

Cheers, 

 

Martin

Hi all,

 

This is probably quite simple, but I haven't found any sample code anywhere, yet: How can I post to a certain from using the Chatter API?

The background is that a user wants to batch-post the same item to several groups in one go, so I want to built a little utility app that grabs the latest post by that user and copies it to several groups.

Any ideas?

 

Kind regards,

 

Martin

 

Hi all,

 

I have tried to find some sample code on developer.force.com for how to upload to Content via API, unsuccessfully unfortunately. I would basically like to automate the batch-upload of a set of files, creating a new item in Content for each file. 

Does anyone have a link with some sample code in Java that I could use to get started?

 

Kind regards,

Martin

 

Hi all, 

 

I have a datatable here where I would like to display the status of the objects, which is a simple string property, like this:

 

<apex:dataTable value="{!allStati}" var="stat" id="theTable" cellpadding="4" border="1">

... <apex:column headervalue="Status" value="{!stat.status}" />  ...

</apex:dataTable> 

 

This works fine, if I just pass in the status as the string. However, I would like to display status icons instead of the string, so I have uploaded my icons to the static resources and I am now dynamically concatenating the status string in the getter, like this:

 

String url = '<img width="80" height="80" src="https://na2.salesforce.com/resource/1244040192000/';

if(status == 'Published')

url = url + 'icon_published" />';

else 

url = url + 'icon_not_published" />'; 

 

Since this is standard HTML, I would have assumed that the table would now include the icon. What I get instead in the table is the url to the status icon in plain text form:

 

"<img width="80" height="80" src="https://na2.salesforce.com/resource/1244040192000/icon_published" />" 

 

How can I get the icons to display?

 

Cheers,

 

Martin 

Hi all,

 

I am facing the following task: I have a standard list view of one of my custom objects. In this view, I would like to include a custom button that, when clicked, does the following: 

- update a status field on all selected custom objects to a certain value

- take the user to another view which filters on the new value of the status field 

 

Is this possible somehow? 

 

Kind regards, 

 

Martin

Hi all,

 

I want to create a custom object with information from an incoming email that has a certain structure. For this purpose, I'd need to go through the body text of the email and parse it line by line. What is the best way of doing this? 

 

Cheers, 

 

Martin

Hi all,

 

Has anyone succeeded in building some automation solutions around the Content product in salesforce? In particular, I'd be interested in batch submission of documents with appropriate tagging and languages settings, but also in uploading new versions of already existing docs. Is there an API that can be used for this? 

 

Cheers, 

 

Martin

It appears that the "RPC" WSDL style is not presently supported by Visualforce.  Can someone please point me to the documentation on WSDL models supported by Visualforce.  More importantly what is the guidance for incorporating RPC-based WSDLs ?

We are presently getting the following error message.

Error: Failed to parse wsdl: Unsupported WSDL style 'rpc'.  Only supports Dcoument/litteral/wrapped services.

A WSDL document describes a Web service. A WSDL binding describes how the service is bound to a messaging protocol, particularly the SOAP messaging protocol. A WSDL SOAP binding can be either a Remote Procedure Call (RPC) style binding or a document style binding. A SOAP binding can also have an encoded use or a literal use. This gives you four style/use models.  Add to this collection a pattern which is commonly called the document/literal wrapped pattern and you have five binding styles to choose from when creating a WSDL file.
1.    RPC/encoded
2.    RPC/literal
3.    Document/encoded
4.    Document/literal
5.    Document/literal wrapped

* Reference: http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/