Search found 642 matches

by jyoung
Fri Mar 08, 2019 8:40 am
Forum: Questions & Answers
Topic: Decimal / Percent Conversion and Display
Replies: 8
Views: 4660

Re: Decimal / Percent Conversion and Display

Put this in a server module begin_com role(*EXTENDS #PRIM_SRVM) srvroutine name(Get) field_map for(*OUTPUT) field(#BPU1) #BPU1 := 1.14 endroutine end_com Then this in a web page begin_com role(*EXTENDS #PRIM_WEB) theme(#SYS_THEME<MaterialDesignBlue>) define_com class(#BPU1.EditField) name(#BPU1) dis...
by jyoung
Fri Mar 08, 2019 8:32 am
Forum: Questions & Answers
Topic: Decimal / Percent Conversion and Display
Replies: 8
Views: 4660

Re: Decimal / Percent Conversion and Display

Response from the server shows the right values.
capture4.PNG
capture4.PNG (15.87 KiB) Viewed 4645 times
by jyoung
Fri Mar 08, 2019 8:29 am
Forum: Questions & Answers
Topic: Decimal / Percent Conversion and Display
Replies: 8
Views: 4660

Re: Decimal / Percent Conversion and Display

In this instance CurrentBPU1 should not be relevant. It is used in a diff calculation later. It is defined as a reffld of BPU1 define field(#CurrentBPU1) reffld(#BPU1) BPU1 & 2, wk_Percent1 & 2 are the only fields displayed. From your MESSAGE_BOX_ADD, I assume you are using VLWIN, whereas I am in VL...
by jyoung
Fri Mar 08, 2019 7:15 am
Forum: Questions & Answers
Topic: Decimal / Percent Conversion and Display
Replies: 8
Views: 4660

Re: Decimal / Percent Conversion and Display

That was going to be my next move. I was trying to avoid it as when the user enters a value, I am going to have to do some checking to ensure only numbers are entered. Easily enough done, I was just wanting to avoid it if I could. The calculation should not require rounding. When I tried it with the...
by jyoung
Fri Mar 08, 2019 5:58 am
Forum: Questions & Answers
Topic: Decimal / Percent Conversion and Display
Replies: 8
Views: 4660

Decimal / Percent Conversion and Display

I have two fields (BPU1 and BPU2) that are a signed(7,6). For display and data entry purposes I need those fields to be a whole percent. To do so, I have created a new field (wk_Percent1 and wk_Percent2) both of which are int(4). I calculate the percentage using wk_Percent1 = BPU1 * 100 so that .140...
by jyoung
Wed Mar 06, 2019 1:09 am
Forum: Questions & Answers
Topic: Ancestor fields in group_by and def_list
Replies: 6
Views: 2625

Re: Ancestor fields in group_by and def_list

This is been accepted as a correction to be released in a future EPC.

Thanks,
Joe
by jyoung
Sat Mar 02, 2019 5:15 am
Forum: Questions & Answers
Topic: Object Equality
Replies: 2
Views: 1456

Re: Object Equality

That is what I was looking for.

Thanks!
by jyoung
Sat Mar 02, 2019 2:36 am
Forum: Questions & Answers
Topic: Object Equality
Replies: 2
Views: 1456

Object Equality

If I define an object as such function options(*DIRECT) begin_com role(*EXTENDS #PRIM_OBJT *LISTFIELDS #ListFields) group_by name(#ListFields) fields(#HVBTC #HVPLCN #HVPLD #wk_Bool1) define_pty name(TypeCode) get(*AUTO #HVBTC) set(*AUTO #HVBTC) define_pty name(ControlNumber) get(*AUTO #HVPLCN) set(*...
by jyoung
Sat Mar 02, 2019 2:07 am
Forum: Questions & Answers
Topic: Ancestor fields in group_by and def_list
Replies: 6
Views: 2625

Re: Ancestor fields in group_by and def_list

Done. I'll post their response when I hear back.

Thanks,
Joe
by jyoung
Fri Mar 01, 2019 2:15 am
Forum: Questions & Answers
Topic: Ancestor fields in group_by and def_list
Replies: 6
Views: 2625

Re: Ancestor fields in group_by and def_list

In the ancestor, they are just fields so I can add them in the group by Here is a test of the ancestor (TestBasePanel) function options(*DIRECT) begin_com role(*EXTENDS #PRIM_PANL) DisplayPosition(1) Height(270) Left(0) TabPosition(1) Top(0) Width(500) LayoutManager(#Layout1) define_com class(#PRIM_...
by jyoung
Thu Feb 28, 2019 2:58 am
Forum: Questions & Answers
Topic: Ancestor fields in group_by and def_list
Replies: 6
Views: 2625

Ancestor fields in group_by and def_list

If I define a component that has three fields in it. begin_com role(*EXTENDS #PRIM_PANL) displayposition(1) height(270) left(0) tabposition(1) top(0) width(500) layoutmanager(#Layout1) * ================================================================================ * LAYOUT * =====================...
by jyoung
Wed Feb 27, 2019 1:35 am
Forum: Questions & Answers
Topic: Questions about Publish RESTful Web Services
Replies: 1
Views: 1392

Re: Questions about Publish RESTful Web Services

Docs are pretty lacking at the moment. This topic may be of help some if you have not found it. https://forum.developer.lansa.com/viewtopic.php?f=3&t=1915&p=5089 Regarding the debugging, you can debug, but not like you are probably used to. I got this trick from Support while tying to debug my own s...
by jyoung
Sat Feb 16, 2019 7:25 am
Forum: Questions & Answers
Topic: Importing IBM i Duplicate Fields
Replies: 3
Views: 1717

Re: Importing IBM i Duplicate Fields

Hey Chad,
Good to know. I was concerned I was going to have to something odd, because I could not find any indication of how the field RPU001 gets mapped back to RPU on the iSeries. I guess this is something that LANSA just knows and not something we see.

Thanks for the help.
Joe
by jyoung
Sat Feb 16, 2019 3:31 am
Forum: Questions & Answers
Topic: Importing IBM i Duplicate Fields
Replies: 3
Views: 1717

Importing IBM i Duplicate Fields

This is my first experience with this type of situation and I would like to know more about how this works and if I am being setup for some issues. We have a File on the IBM i that I previously imported that contains a Field named RPU that is a Decimal(15). I just imported another File that has a Fi...
by jyoung
Fri Feb 08, 2019 9:28 am
Forum: Questions & Answers
Topic: Detecting Record Lock
Replies: 5
Views: 1925

Re: Detecting Record Lock

Digging through the docs and I found the *DBMS_RECORD_LOCKED System Variable. https://docs.lansa.com/14/en/lansa015/index.htm#lansa/ladtgub4_0115.htm On the the surface this appears that it could be the answer. The docs https://docs.lansa.com/14/en/lansa015/content/lansa/specfilklists_2.htm use it a...
by jyoung
Fri Feb 08, 2019 8:20 am
Forum: Questions & Answers
Topic: Double click on list can't show loading image
Replies: 8
Views: 2456

Re: Double click on list can't show loading image

Are you using Execute or ExecuteAsync in your call to the Server Module? If you are doing it synchronously (using Execute) then the browser will lockup and you will not see the image. Your example with the large loop, is simulating a synchronous execution. If you are using an async solution (Execute...
by jyoung
Fri Feb 08, 2019 4:54 am
Forum: Questions & Answers
Topic: Detecting Record Lock
Replies: 5
Views: 1925

Detecting Record Lock

Is there anyway to detect that a record is locked when you fetch it? We have a case where a user used a 5250 screen to view a record. That user then went into our VLF-ONE app and tried to change the record only to have the app eventually crash seeming because of the lock. Question is then, how do yo...
by jyoung
Fri Feb 08, 2019 4:31 am
Forum: Questions & Answers
Topic: Options for "Modal" Popup VL-WEB
Replies: 3
Views: 1621

Re: Options for "Modal" Popup VL-WEB

Hey Art, You may want to make sure you are getting the latest script. i.e. do a hard refresh. I use popups like this all the time and every time time it seems like it does not work its because the browser had an outdated script. Here is a simple sample to compare with. The only way to close the popu...
by jyoung
Fri Feb 08, 2019 2:48 am
Forum: Questions & Answers
Topic: Keeping the position of scroll bar in a list
Replies: 2
Views: 1444

Re: Keeping the position of scroll bar in a list

Not sure what you mean by a browse list, but if you are using a PRIM_LIST, you can use the VerticalScrollTo method. https://docs.lansa.com/14/en/lansa016/prim_list_verticalscrollto.htm Since you are deleting a row and refreshing the list, you may have to store an index or something so you can get th...
by jyoung
Sat Feb 02, 2019 1:20 am
Forum: Questions & Answers
Topic: Edit/Display text as HTML in VLF command Handler
Replies: 3
Views: 1598

Re: Edit/Display text as HTML in VLF command Handler

Hi and Welcome!

There is a VLF-ONE demo that uses QuillJS embedded in a widget.

https://docs.lansa.com/14/en/lansa048/c ... 8_7000.htm

You can find the implementation in DF_Note_QuillInterface widget and the DF_Note_NoteDetailPanel RP.

Hope this helps.
Joe