Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > Code & Utilities

User login

Frontpage Sponsor

Main

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

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 22nd January 2015, 15:55
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,286
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
Baan/LN Way - Live Cricket Scores - Powered by Yahoo Pipes! World Cup 2015!!

Hi,

So, this utility is for the ones who wants to -

1. Connect LN with Cricket
2. Who wants to know the XML Parsing in LN
3. Who wants to know the concepts of pipes.
4. Who wants to know about curl usage.

So, here it goes.

1. Create a 3GL Script.
2. Copy the attached code.
3. Run it.

You can use it in whichever you like i.e. creating display session, report, dialogue etc maintaining the terms & conditions noted.

This utility uses Yahoo Pipes to generate the XML of the live cricket scores and stores it on server. LN takes care of parsing and showing the results.

So, have fun! :)

Note- File name is currently Windows compliant. Change it according to the server.
Attached Files
File Type: bc cric_final_pipes.bc (3.3 KB, 136 views)
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #2  
Old 27th January 2015, 12:47
ravin_singh ravin_singh is offline
Member
 
Join Date: Dec 2012
Posts: 39
ravin_singh is on a distinguished road
Baan: ERP LN FP7 - DB: SQL Server 2008 - OS: Windows Server 2008 R2
Thumbs up

this was fun.. works like a charm. Thank u.. 2 days back ws thinking what curl actually does. good one.
Reply With Quote
  #3  
Old 28th January 2015, 05:31
sam291091's Avatar
sam291091 sam291091 is offline
Member
 
Join Date: Feb 2014
Location: Surat Gujarat
Posts: 68
sam291091 is on a distinguished road
Baan: ERP LN FP9 - DB: MY SQL - OS: Windows
Getting Error Message

Hi bhushanchanda,
I was run your 3gl and getting error message "couldn't resolve host name".
Is there any solution for this?
Reply With Quote
  #4  
Old 28th January 2015, 08:13
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,286
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
Hi,

Make sure your server is connected to the internet.

Try to run this link on your server browser to see if you get an xml view.

http://pipes.yahoo.com/pipes/pipe.ru...vQ&_render=rss
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #5  
Old 28th January 2015, 09:13
sam291091's Avatar
sam291091 sam291091 is offline
Member
 
Join Date: Feb 2014
Location: Surat Gujarat
Posts: 68
sam291091 is on a distinguished road
Baan: ERP LN FP9 - DB: MY SQL - OS: Windows
Hi bhushanchanda,
This link is open successfully in my server browser.
Reply With Quote
  #6  
Old 28th January 2015, 09:15
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,286
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
Hi,

Now check if the contents are downloaded or not to the file you are providing. Debug and see the return value for curl.download.. function.
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
Sponsored Links
  #7  
Old 28th January 2015, 09:17
sam291091's Avatar
sam291091 sam291091 is offline
Member
 
Join Date: Feb 2014
Location: Surat Gujarat
Posts: 68
sam291091 is on a distinguished road
Baan: ERP LN FP9 - DB: MY SQL - OS: Windows
HI,
It Return ret Value as 6 and that file is create cric.xml but it is blank
Reply With Quote
  #8  
Old 28th January 2015, 09:37
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,286
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
Hi,

Check if you have not mistyped any thing in that URL. Alao, try to run the program from Server and check the result.
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
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 Off
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
So who's going to win the cricket world cup? rupertb General Discussion & Chat 46 24th March 2003 11:50


All times are GMT +2. The time now is 00:11.


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