Baanboard.com

Go Back   Baanboard.com > Forum > CMS - Forum Integration > Blogs and Web links

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
18%
500 - 800 GB
6%
800 - 1200 GB
6%
1200 - 1500 GB
12%
1500 - 2000 GB
18%
> 2000 GB
24%
Total votes: 17

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 6th November 2012, 02:53
shivakumar shivakumar is offline
Junior Member
 
Join Date: Mar 2006
Location: usa
Posts: 13
shivakumar is on a distinguished road
Baan: Baan IV , v LN6.1 - DB: Oracle 9i - OS: Unix
how to assign enum to enum of having different domain. to display on the session ba

A new blog entry has been added:

how to assign enum to enum of having different domain. to display on the session based on the condition

Quote:
how to assign enum to enum  of  having different domain. to display on the session based on the condition, i get error . my code is like this
function extern  get.form.appl()                       
{
          
            form.appl = empty 
            select tssma102.*, tdsls940.*
            from   tssma102, tdsls940
            where  tssma102._index1 = {:tssma931.cins}
            and    tdsls940.cins refers to tssma102.cins
            and    tssma102.cins = tdsls940.cins
            selectdo
                    if tdsls940.qtyp = tdsls.qtyp.newors or tdsls940.qtyp = tdsls.qtyp.usedors then
                       |enum.descr$("tdsls.appl",form.appl)= enum.descr$("tdsls.sapp",tdsls940.sappl)
                        form.appl = tdsls940.sappl
                     else
                         form.appl =       tdsls940.appl
                    endif   
            endselect
}
     i get error illegal domain combination tdsls.app = tdsls.sapp
Thanks in advance.
shiva      
          
      
Reply With Quote
  #2  
Old 6th November 2012, 07:24
vahdani's Avatar
vahdani vahdani is offline
Guru
 
Join Date: Aug 2002
Location: Cologne, Germany
Posts: 438
vahdani is on a distinguished road
Baan: all - DB: all - OS: Unix / Win2K
Hi,

try this:

form.appl = ltoe(etol(tdsls940.sappl))
__________________
May the force be with you!
Reply With Quote
  #3  
Old 6th November 2012, 17:06
shivakumar shivakumar is offline
Junior Member
 
Join Date: Mar 2006
Location: usa
Posts: 13
shivakumar is on a distinguished road
Baan: Baan IV , v LN6.1 - DB: Oracle 9i - OS: Unix
hi vahdani,

Thanks vahdani,

I tried that in very first, where I don’t get compilation error, but when I select records of contract type have 7 or 8 where enum not common of enum domain tdsls.app (for example tdsls.sapp of cng records) then it will throw error message in session: ask_enum domain tdsls.app is wrong.

my domains constant are like this .....
Tdsls.app has 6 constant.
1. Gather
2. Injection
3. Pipeline
4. Ref
5. Wellhead
6. Vru
Tdsls.sapp has 10 constant
1. Wellhead
2. Vru
3. 3ref
4. Pipeline
5. Gaslift
6. Gathering
7. Airnit
8. Cng
9. Fps
10. Stor

so please let me know how to get values displayed correctly.

Thanks
Shiva
Reply With Quote
  #4  
Old 6th November 2012, 18:03
vahdani's Avatar
vahdani vahdani is offline
Guru
 
Join Date: Aug 2002
Location: Cologne, Germany
Posts: 438
vahdani is on a distinguished road
Baan: all - DB: all - OS: Unix / Win2K
Hi Shiva,

hie you have to assign the values manually as the two domains are very different. Just a suggestion:

Code:
	...
	|form.appl = tdsls940.sappl
	on case tdsls940.sappl
	case tdsls.sapp.Wellhead:
		form.appl = tdsls.appl.Wellhead
		break
	case tdsls.sapp.Vru:
		form.appl = tdsls.appl.Vru
		break
	case tdsls.sapp.3ref:
		form.appl = tdsls.appl.Ref
		break
	case tdsls.sapp.Pipeline:
	  	form.appl = tdsls.appl.Pipeline
		break
	case tdsls.sapp.Gathering:
		form.appl = tdsls.appl.Gather
		break
	case tdsls.sapp.Gaslift:
	case tdsls.sapp.Airnit:
	case tdsls.sapp.Cng:
	case tdsls.sapp.Fps:
	case tdsls.sapp.Stor:
		|tdsls.appl has no such thing!!!
	  	form.appl = empty
		break
	endcase
	...
__________________
May the force be with you!
Reply With Quote
  #5  
Old 6th November 2012, 18:42
shivakumar shivakumar is offline
Junior Member
 
Join Date: Mar 2006
Location: usa
Posts: 13
shivakumar is on a distinguished road
Baan: Baan IV , v LN6.1 - DB: Oracle 9i - OS: Unix
Hi Vahdani,

Thanks for your effort, it doesn't works, i get same error like illegal domain combination tdsls.app = tdsls.sapp , case not accepted.
Reply With Quote
  #6  
Old 8th November 2012, 05:27
shivakumar shivakumar is offline
Junior Member
 
Join Date: Mar 2006
Location: usa
Posts: 13
shivakumar is on a distinguished road
Baan: Baan IV , v LN6.1 - DB: Oracle 9i - OS: Unix
Hi Vahdani,

Good morning!

based on ur logic i modified the code, in assignment of enum to enum. it works. once again thanks for your support.

Have a good day.
Thanks
shiva
Reply With Quote
Sponsored Links
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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling Unit functionality baazigar Distribution, Transportation & Warehousing 4 19th February 2012 15:54
Calling display session in TR problem Nick Cooley AFS/DDC/OLE: Function servers 5 7th July 2010 14:21
Multi reports per session Ash Gajjar Tools Development 2 1st July 2005 15:25
error mesg when maintain receipt using AFS Kingsto88 AFS/DDC/OLE: Function servers 20 2nd February 2005 13:45
using dll tiitmdll0003 ckassab Tools Development 2 7th December 2004 00:52


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


©2001-2018 - Baanboard.com - Baanforums.com