Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > ION

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
38%
Installation Wizard into new VRC
41%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 37

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 12th July 2017, 20:53
bansaanu bansaanu is offline
Member
 
Join Date: Mar 2010
Posts: 67
bansaanu is on a distinguished road
Baan: BaaN IV and ERP - DB: Oracle - OS: Unix and Window
How to test Process BOD

Hi,

Can you please suggest how can we test a process custom BOD that we have written? Where do we need to place the file to make it pick up by ION? Can we test this directly from LN studio itself?


Thanks,
Anubhav
Reply With Quote
Sponsored Links
  #2  
Old 13th July 2017, 06:40
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,313
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
If everything has been setup and your BOD's are active, you just need to trigger them using the standard DLL to invoke your BOD.

e.g.

Say you have a maintain session with main table as tccom890 with Index and Document ID as item , so, in the DAL or the program script/UserExit(UE) of the session, you will need to invoke your BOD in after.save.object(DAL) or choice.add.set/after.write after.rewrite(Program script) or ue.after.after.save.object method (UE) sections.

Sample -

Code:
function extern long ue.after.after.save.object(long mode)
{
    on case mode
    case DAL_NEW:
        publishMyCustomBOD("Add")
       
        break
    case DAL_UPDATE:
   
        break
    endcase
    
    return(0)
}

function long publishMyCustomBOD(domain tcmcs.str30 i.Action)        
{
    
    
    RETIFNOK(tcbod.dll0001.publish.bod(
            "MyCustomBOD",            |i.noun,
            "tccom890",                |i.bod.table,
            trim$(i.Action),                |i.action.code,
            BOD_ENTITY_DEPARTMENT,    |i.bod.entity.type,
            "",                        |i.bod.entity.code,
            tccom890.item,                |i.document.id,
            false,                    |i.batch.bod,
            "",                        |i.batch.id,
            0,                        |i.batch.sequence,
            0,                        |i.batch.size,
            "",                        |i.processing.action
            tccom890.item))            |identifiers

    return(0)
}

Now, when you insert a record through this maintain session, your BOD should be triggered and the OneView on ION Desk should show it with DocumentID.
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #3  
Old 13th July 2017, 10:33
bansaanu bansaanu is offline
Member
 
Join Date: Mar 2010
Posts: 67
bansaanu is on a distinguished road
Baan: BaaN IV and ERP - DB: Oracle - OS: Unix and Window
Hi Bhushan,

Thanks for the reply!!! Code or logic that you provided is for publishing sync BOD from LN. it is working fine for my setup as well but I need to test ProcesssBOD of the same noun. Basically I have a setup a BOD in which I want to create records in LN so I am wondering how should I test that? Where should I put my BOD so that ION picks up the same and execute code that I have written in "on execute" command of onProcess method.

Is there any way to test my BOD through LN studio itself? Please suggest.

Thanks,
Anubhav
Reply With Quote
  #4  
Old 13th July 2017, 20:04
vik.patil vik.patil is offline
Member
 
Join Date: Apr 2008
Posts: 40
vik.patil is on a distinguished road
Baan: ERP LN - DB: MS-SQL - OS: MS-WINDOWS
Hi Anubhav,

We have one session in LN as Test Business Object Method(tlbct3232m000) where we can give xml file which is received in ION and test the same. I assume this session applicable for all Standard and Custom BOD's. I hope this will help you to test your custom BOD.

Regards,

Vikram
Reply With Quote
  #5  
Old 13th July 2017, 20:17
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,313
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
Question -

1) What is the source and destination of your BOD? Is it being published and consumed by 2 different LN environment or something else?

For publishing, you can use the same code which I provided, in case if you want to check what happens at the the consuming environment, you can take the XML produced by Published BOD and use it in session tlbct3232m000(Test Business Object)
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #6  
Old 14th July 2017, 12:41
bansaanu bansaanu is offline
Member
 
Join Date: Mar 2010
Posts: 67
bansaanu is on a distinguished road
Baan: BaaN IV and ERP - DB: Oracle - OS: Unix and Window
Thanks to all!!!

Hi Vikram and Bhushan,

Thanks a lot for the info!!! That is exactly I was looking for!!! Thank you so much!!!

Anubhav
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of "background" keyword in Baan kruyoupatel Tools Development 2 27th April 2016 08:03
How to Combine two session in a one form mr_suleyman Tools Development 18 29th March 2012 19:19
current.mwindow() spartacus Tools Development 2 10th September 2009 13:43
Problem with an AFS Sales Order process zymmon AFS/DDC/OLE: Function servers 2 28th May 2009 15:21
Webtop vs. Worktop kmcinc Tools Administration & Installation 16 19th July 2007 15:37


All times are GMT +2. The time now is 20:07.


©2001-2017 - Baanboard.com - Baanforums.com