CRM Software - CABC | Maximizer | Maximizer Add-ons | Services | Support | Store | News

    Find out about Linktracker for Maximzier
CABC    Maxtalk  Hop To Forum Categories  Maximizer CRM Software  Hop To Forums  Maximizer Support    Creating dynamic toolbar buttons
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Howdy. We run Max 10 CRM Group (desktop).

What I need is to be able to create a button in my custom toolbar that is essentially:
http://intranet/create-invoice?ID=%Client_ID%

..where %Client_ID% would represent the currently selected record's ID.

This seems like a very simple thing for the Max engineers to make possible, so I'm amazed I have been unable to find a solution.

We do have the customization kit, but that has not been any help.

Thanks!
Cory
 
Posts: 7 | Location: Austin, TX USA | Registered: July 25, 2008Reply With QuoteEdit or Delete MessageReport This Post
Master
Picture of Gord
Posted Hide Post
Hi, Cory. Try this:

Create a little application that retrieves the current Client_Id via OLE Automation. Have it build the URL string then "run" it to launch your default browser. In VBScript it would look something like...

Option Explicit

Dim oMaxInst, oMaxRec, sCommand, oWshShell

Set oMaxInst = _
      CreateObject("Maximizer.AttachToCurrentInstance")
Set oMaxRec = oMaxInst.GetCurrentRecordObject

sCommand = "http://intranet/create-invoice?ID=" & _
      oMaxRec.GetFieldValue("IDentification")
		
'// for debugging purposes, just echo the string
Wscript.Echo sCommand

'// to open the page, use this instead
'
'Set oWshShell = CreateObject("WScript.Shell")
'oWshShell.Run sCommand, 6, False

Set oMaxRec = Nothing
Set oMaxInst = Nothing


Then add a toolbar button to launch your little application.

.
 
Posts: 722 | Location: Canada | Registered: July 14, 2000Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Awesome, that did the trick!

Thanks,
Cory
 
Posts: 7 | Location: Austin, TX USA | Registered: July 25, 2008Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

CABC    Maxtalk  Hop To Forum Categories  Maximizer CRM Software  Hop To Forums  Maximizer Support    Creating dynamic toolbar buttons

© CABC Ltd 2002 - 2005. All Rights Reserved.
Maximizer is a trademark of Maximizer Software inc.