sachinbaan
4th February 2014, 07:55
hi,

i am writting UE , i want to display information message through UE, What should i do for that?, please reply...

Thanks & Regards,
Sachin

bhushanchanda
4th February 2014, 08:29
Hi,

Try something like this:-

function extern long ue.after.after.save.object(long mode)
{
on case mode
case DAL_NEW:

dal.set.info.message("@%1s", "You Message Here")
show.dal.messages(MSG.INFO)
endif
break
case DAL_UPDATE:
break
endcase
return(0)
}

sachinbaan
4th February 2014, 08:36
sir,

i did this but it doesn't pop up message dialogue, it shows me a window with message and two buttons, 1. clear 2. close ,

i want simple message dialogue with "ok" button, is it possible?

bhushanchanda
4th February 2014, 08:47
Hi,

AFAIK, you can't use mess or message in UE/3GL.

But, there's a way to trick it. Create a simple 4GL program. In its script just add this:-


before.program:
message("Your_message")
end()

Now, in your UE DLL, add this:-

start.session(MODAL,"new_session_code","","")

That's it!

bhushanchanda
4th February 2014, 08:55
And, if you don't want to create a new session for it. Take any session, add these lines to its 4GL

string calling.session(16)
before.program:
import("prog.name$",calling.session)

if calling.session = "session_code_for_which_you_have_added_UE" then
message("Hello!")
end()
endif

JaapJD
4th February 2014, 09:25
If you see the window with the Clear and Close buttons, you are using the so-called "Non-interrupting Message Mode". You can switch that off. Where to do that depends in the UI you are using:
- Worktop: in any session, via Tools>Options, set Message Mode to Interactive Mode.
- WebUI: Options>Infor LN options, uncheck Non-interrupting Message Mode
- Ming.le (in LN application): Options, uncheck Non-interrupting Message Mode

bhushanchanda
4th February 2014, 09:34
If you see the window with the Clear and Close buttons, you are using the so-called "Non-interrupting Message Mode". You can switch that off. Where to do that depends in the UI you are using:
- Worktop: in any session, via Tools>Options, set Message Mode to Interactive Mode.
- WebUI: Options>Infor LN options, uncheck Non-interrupting Message Mode
- Ming.le (in LN application): Options, uncheck Non-interrupting Message Mode

Hi Jaap,

It doesn't seem to work for me. In any mode, it gives the same kind of message display. I guess, it just puts the message screen in the front/backward of the session showing message (FOR WORKTOP).

RonaldFal00
6th February 2014, 07:35
It was doesn't work even after every trial, but your super ideas! Perhaps I would take into account trying this myself. Thanks

sachinbaan
6th February 2014, 13:29
awsome guys... bhushan ur trick for message is too good.


Thank you

rahul.kolhe22
7th February 2014, 07:07
Hi Sachin,

You can try calling a dll in UE script and in dll you can use "mess" or "message" functions.
But I understand that it is not good practice to popup any message in DAL or UE and should be avoided.

Also, as suggested by Jaap, we have the option to set "Non-interrupting Message Mode".
But when any message is set in UE using dal.set.* functions, I observed they will always popup in a window with "Clear" & "Close" button irrespective of the option "Non-interrupting Message Mode".

Kind Regards,
Rahul

sachinbaan
7th February 2014, 11:02
Hi rahul,

u r right, we should avoid messages in DAL or UE , btw "Non-interrupting Message Mode" is handled user wise, right... so in multiuser enviroment how we can handle it..? we have to set this mode to each user...,

thanks & Regards,
sachin

DDPatel
4th June 2020, 13:00
:D

look like my issue solved...

I had a issue.
I can't able to use ask.enum function in UE.

My Solution
Create separate script(General Library) for ask.enum and add as a library in UE.

Thank you,