Book a Demo

Author Topic: Session.Input doesn't work as expected  (Read 5177 times)

MaXyM

  • EA User
  • **
  • Posts: 120
  • Karma: +8/-0
    • View Profile
Session.Input doesn't work as expected
« on: January 25, 2019, 03:22:25 am »
I've noticed Session.Input doesn't show input requester in script run mode. The requester is being shown only in script debug mode.
Is it correct? Am I missing something?

Code: [Select]
!INC Local Scripts.EAConstants-JScript

function main()
{
var newData = Session.Input('Input dummy data');

Session.Output('Finished');
}

main();

with regards

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Session.Input doesn't work as expected
« Reply #1 on: January 25, 2019, 04:37:36 am »
You can use the function DLGInputBox from the EAScriptLib.JScript-Dialog

It basically calls VBScripts antive InputBox

Geert

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Session.Input doesn't work as expected
« Reply #2 on: January 25, 2019, 09:23:32 am »
The issue with Session.Input should be getting fixed in the next build of EA.