message

ameenameen Member Posts: 217
I assigned Authorization for a purchase order. Now created a purchase order and sent for authorization. Now Authorized person is working on Navision .When the authorized person logins Navision then he will get a message
“ U have One task “. Then he will open and check that P.Order. then he will authorize that P.Order .This Navision process.
But what I want na. For example I created a P.Order Morning 11.30 Pm. And I sent for authorization, but at that time authorized person is working on Navision. Now authorized person did not get any message. But in the usertask form created a task.
But my query is while he working on Navision he should get message when some body sent for authorization.How this process run. I could not get any solution. Could anybody throw as many as solutions to solve this problem. Just throw some functionality to do coding.
If anybody throw some light I will check about code.
thanks
ameen

Comments

  • MalajloMalajlo Member Posts: 294
    For getting messages you can use NAV Comm components.

    For receiving messages on TCP port 43450:
    Name	DataType	Subtype	Length
    CC2	Automation	'Navision Communication Component version 2'.CommunicationComponent	
    SBA	Automation	'Navision Socket Bus Adapter'.SocketBusAdapter	
    InMsg	Automation	'Navision Communication Component version 2'.InMessage	
    InS	InStream		
    txt	Text		30
    

    Start as SingleInstance following
    OnRun()
    IF ISCLEAR(CC2) THEN CREATE(CC2) ;
    IF ISCLEAR(SBA) THEN CREATE(SBA) ;
    
    CC2.AddBusAdapter(SBA,0) ;
    SBA.OpenSocket(43450,'') ; //43450 TCP port
    
    CC2::MessageReceived(VAR InMessage : Automation "''.IDISPATCH")
    MESSAGE(FORMAT(InMessage)) ;
    

    For sending you must know the IP of the computer. I've posted an example how to get it last week.

    Second option is to use timer component and check a "queue" table for any nev messages.
  • FordewindFordewind Member Posts: 27
    You may send message by e-mail. It's simple. Your users can see more specific information about task (for example, copy "No." of the target order from e-mail ) and read it again if they need.
    Nav 4.0 sp3
  • saiasysmbssaiasysmbs Member Posts: 2
    Hi Boss,

    Even u can send emails using Business Notification services.

    Try this.

    satya
    Satya
Sign In or Register to comment.