You are viewing limited content. For full access, please sign in.

Question

Question

Client Automation Toolbar (Error in 10x)

SDK
asked on May 11, 2016

Wondering if anyone has deployed a Client Automation Add-In to LF 10x.  I've created an application as a new toolbar and in LF version 9x it works fine.  When deployed to 10x it installs without any issues.  It adds the toolbar buttons but it complains when a custom button is clicked.  The following Error is generated “Input string was not in the correct format” 

Below is an example of one button command:

CustomButtonManager.exe" -buttonclick -connguid "%(ConnectionGUID)" -hwnd "%(hwnd)" -pid "%(PID)" -DocumentID "%(DocumentID)" -SelectedPages "%(SelectedPages)" -SelectedEntries "%(SelectedEntries)" -command changeredactioncolor

 

NOTE: This command line syntax works in version 9.  Also, if you deploy the SDK10 CA sample project to a v10 repository you get the same error.

0 0

Replies

replied on May 11, 2016

Try removing the -SelectedEntries "%(SelectedEntries)", that only applies to the folder browser. The 10 client was updated to not clear out tokens that it doesn't recognize, so the sample code is out of date.

0 0
replied on May 11, 2016

Robert,

 

Many thanks, that change corrected the issue.

 

Byron

0 0
replied on November 6, 2017

Looks like changes are required for LF 10.2

Dim argsbase As String = " -buttonclick -connguid ""%(ConnectionGUID)"" -hwnd ""%(hwnd)"" -pid ""%(PID)"" -DocumentID ""%(DocumentID)"" -SelectedEntries ""%(SelectedEntries)"" "

 

If I use  ( -SelectedPages ""%(SelectedPages)" ) as per the sample code, the buttons within the main client window are greyed out.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.