Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

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
26%
500 - 800 GB
3%
800 - 1200 GB
9%
1200 - 1500 GB
12%
1500 - 2000 GB
12%
> 2000 GB
21%
Total votes: 34

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 24th April 2018, 11:53
sachinbaan's Avatar
sachinbaan sachinbaan is offline
Senior Member
 
Join Date: Oct 2013
Posts: 172
sachinbaan is on a distinguished road
Baan: ERP LN - DB: MS SQL - OS: Microsoft Server
Get answer of Question in code
Baan: Other/Unknown
C/S: None/Unknown

Hello,

I have written wrapper on standard session.

On the delete of record, system asks a question with button Yes & No.

I want to get the answer in my code, how would i get this?


Regards,
Sachin
__________________
Regards,
Sachin

TO DREAM THE PERSON U WOULD LIKE 2 B, IS 2 WASTE THE PERSON U R.
Reply With Quote
  #2  
Old 24th April 2018, 15:24
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,733
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
ask.enum()

Hello,
refer to ask.enum()

Regards
__________________
//Bernd
Reply With Quote
  #3  
Old 24th April 2018, 18:01
sachinbaan's Avatar
sachinbaan sachinbaan is offline
Senior Member
 
Join Date: Oct 2013
Posts: 172
sachinbaan is on a distinguished road
Baan: ERP LN - DB: MS SQL - OS: Microsoft Server
Hi,

I want to capture the answer of standard question.

Can you please explain how ask.enum() will help, i am not able to understand.


Regards,
Sachin
__________________
Regards,
Sachin

TO DREAM THE PERSON U WOULD LIKE 2 B, IS 2 WASTE THE PERSON U R.
Reply With Quote
  #4  
Old 24th April 2018, 18:18
VishalMistry's Avatar
VishalMistry VishalMistry is offline
Guru
 
Join Date: Dec 2004
Location: India, Gujarat
Posts: 608
VishalMistry has a little shameless behaviour in the past
Baan: Baan IV, ERPLn - DB: SQL Server 2000 / 2008 - OS: Windows Server 2003 / 2008
Red face

Hello,

domain tcyesno answer
answer = ask.enum("ttstpq0100", tcyesno.yes)
if ( answer = tcyesno.yes) then
do something
endif

Above code presents the user with message box confirming deletion of record. By default button Yes will be highlighted. User's response is captured in the variable answer.

The question code "ttstpq0100" is defined in the data dictionary, along with possible choices (yes, no).

NOTE: before performing any action (update / delete) through AFS (wrapper session), if you want to confirm with user and pass-on user's choice to the session, you can use ask.enum().

Hope this helps.

Vishal

Last edited by VishalMistry : 24th April 2018 at 18:26.
Reply With Quote
  #5  
Old 25th April 2018, 09:37
pralash pralash is offline
Senior Member
 
Join Date: Feb 2017
Posts: 228
pralash is on a distinguished road
Baan: 9.0 - DB: SQL Server - OS: Windows 2012R2
Hi,

By using "ask.enum" function, we are getting the Message dialogue function as like in VB...

Then I don't have the idea about how to create a wrapper script for a particular session... So Please let me know the steps for creating a new wrapper script....

Thanks in advance,
Pralash
Reply With Quote
  #6  
Old 25th April 2018, 09:55
VishalMistry's Avatar
VishalMistry VishalMistry is offline
Guru
 
Join Date: Dec 2004
Location: India, Gujarat
Posts: 608
VishalMistry has a little shameless behaviour in the past
Baan: Baan IV, ERPLn - DB: SQL Server 2000 / 2008 - OS: Windows Server 2003 / 2008
Wink

Hello,

You can use the session ttstpcreatdll to generate AFS DLL for any session.

Vishal
Reply With Quote
  #7  
Old 14th May 2018, 16:24
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,365
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
Quote:
Originally Posted by sachinbaan View Post
Hello,

I have written wrapper on standard session.

On the delete of record, system asks a question with button Yes & No.

I want to get the answer in my code, how would i get this?


Regards,
Sachin
This is a good question. So, basically, the standard code already has ask.enum() being used within its source and you want to check the return value for that.

I don't think there is a way to do that without knowing the variable name which is being used for storing that enum value. If you can run a bshell trace and see if you can find it somehow, that will make your life easier. If not, go with another way.

In choice.mark.delete: section and after.choice: subsection, rewrite the same ask.enum() and ask your users to answer the question the second time saying that its a limitation and they have to deal with that until you find a solution. Now, go ahead and dig deep and find that variable name until then.
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #8  
Old 15th May 2018, 14:58
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,146
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
You can also run code in debug - get to the step and let it ask the question. Step thru the question it L (at least I think that is the right command). It will display everything that is set - you can look thru it to see if you see something that might look like what you are looking for. Not sure it will work. If they just ask the question and do not store it to a variable there might not be anyway to trap it.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
Sponsored Links
  #9  
Old 16th May 2018, 09:49
litrax's Avatar
litrax litrax is offline
Senior Member
 
Join Date: Sep 2005
Location: Germany
Posts: 109
litrax is on a distinguished road
Baan: ERP LN (10.2.1) - DB: Oracle12c (12.1.0.2.0) - OS: Red Hat Enterprise Linux 7.1
Use ask.enum()
Read the f... ing manual
http://www.baanboard.com/programmers_manual_baanerp

Under the letter "A"
http://www.baanboard.com/programmers...rp_TopicList_A

you find the reference to the command ask.enum()
http://www.baanboard.com/programmers...rates_ask_enum

Always glad I could help...
__________________
Have a lot of fun...

Please look at this before asking wholes in the stomach ;-)
http://www.baanboard.com/programmers_manual_baanerp
Reply With Quote
  #10  
Old 16th May 2018, 09:52
sachinbaan's Avatar
sachinbaan sachinbaan is offline
Senior Member
 
Join Date: Oct 2013
Posts: 172
sachinbaan is on a distinguished road
Baan: ERP LN - DB: MS SQL - OS: Microsoft Server
Quote:
Originally Posted by litrax View Post
Use ask.enum()
Read the f... ing manual
http://www.baanboard.com/programmers_manual_baanerp

Under the letter "A"
http://www.baanboard.com/programmers...rp_TopicList_A

you find the reference to the command ask.enum()
http://www.baanboard.com/programmers...rates_ask_enum

Always glad I could help...
I guess you didnt understand what i want, please refer to the reply of Bhushanchanda...

Regards,
Sachin
__________________
Regards,
Sachin

TO DREAM THE PERSON U WOULD LIKE 2 B, IS 2 WASTE THE PERSON U R.

Last edited by sachinbaan : 16th May 2018 at 12:12.
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
ERP Technical Consultant Interview Question answer mk.ahmed71 Tools Administration & Installation 1 10th September 2015 11:11
Answer automatically a question Jordi.Tolra Tools Development 4 2nd April 2014 17:44
"stpapi.delete" with answer "no" to question! muheeb AFS/DDC/OLE: Function servers 1 11th March 2006 18:03
How to Code Answer to Question ttstps0114 jholdrid Tools Development 2 15th November 2004 19:05
Question Code Renegade Tools Development 7 17th February 2003 12:57


All times are GMT +2. The time now is 02:52.


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