[Axapta-Knowledge-Village] Re: Adding a button to a form

2009-04-16 Thread r_ssh
Girac,

If you requirement is something like opening the document directly instead of 
doing the same thru multiple forms. Then override the clicked() method of the 
button with the following piece of code

WinApi::shellExecute('winword.exe') --> This will directly open the documents. 
But the limitation is you need to manually find the document in system and its 
not the same functionality as DocuView does.

Thanks
Santosh

--- In Axapta-Knowledge-Village@yahoogroups.com, "Girac"  wrote:
>
> Hello Santosh
> I have that option checked and have the button next to my alert, but I want 
> to add a button on the form that when pressed will open the Document handler 
> and select my "New>Document" that I specify, instead of the user having to 
> click the DocHandler, then New, then find the right word document as that 
> will ba many to choose from.
> 
> 
> 
> 
> --- In Axapta-Knowledge-Village@yahoogroups.com, "r_ssh" 
>  wrote:
> >
> > Hi Girac,
> > 
> > Any form which is designed will have the "Document handling" button readily 
> > available.
> > 
> > Please enable the Document Handling via
> > 
> > Tools > Options > Enable Document Handling active.(This is generic way 
> > where it enables globally to all the forms in AX)
> > 
> > Hope this answers your query.
> > 
> > Thanks
> > Santosh.R
> > 
> > --- In Axapta-Knowledge-Village@yahoogroups.com, "Girac"  wrote:
> > >
> > > I would like to add a document handler button to a form of mine and only 
> > > have the document show up. 
> > > I dont have alot of ax programming, can anyone shed light on how this is 
> > > done. 
> > > 
> > > best regards,,,
> > > 
> > > 
> > > g
> > >
> >
>




[Axapta-Knowledge-Village] Re: Adding a button to a form

2009-04-15 Thread Girac
Hello Santosh
I have that option checked and have the button next to my alert, but I want to 
add a button on the form that when pressed will open the Document handler and 
select my "New>Document" that I specify, instead of the user having to click 
the DocHandler, then New, then find the right word document as that will ba 
many to choose from.




--- In Axapta-Knowledge-Village@yahoogroups.com, "r_ssh" 
 wrote:
>
> Hi Girac,
> 
> Any form which is designed will have the "Document handling" button readily 
> available.
> 
> Please enable the Document Handling via
> 
> Tools > Options > Enable Document Handling active.(This is generic way where 
> it enables globally to all the forms in AX)
> 
> Hope this answers your query.
> 
> Thanks
> Santosh.R
> 
> --- In Axapta-Knowledge-Village@yahoogroups.com, "Girac"  wrote:
> >
> > I would like to add a document handler button to a form of mine and only 
> > have the document show up. 
> > I dont have alot of ax programming, can anyone shed light on how this is 
> > done. 
> > 
> > best regards,,,
> > 
> > 
> > g
> >
>




[Axapta-Knowledge-Village] Re: Adding a button to a form

2009-04-15 Thread r_ssh
Hi Girac,

Any form which is designed will have the "Document handling" button readily 
available.

Please enable the Document Handling via

Tools > Options > Enable Document Handling active.(This is generic way where it 
enables globally to all the forms in AX)

Hope this answers your query.

Thanks
Santosh.R

--- In Axapta-Knowledge-Village@yahoogroups.com, "Girac"  wrote:
>
> I would like to add a document handler button to a form of mine and only have 
> the document show up. 
> I dont have alot of ax programming, can anyone shed light on how this is 
> done. 
> 
> best regards,,,
> 
> 
> g
>