Search found 17 matches

by gstenstrom
Wed Dec 19, 2018 3:36 am
Forum: Questions & Answers
Topic: Dynamically set the visiblility of #PRIM_MD.ListIcon
Replies: 3
Views: 3208

Re: Dynamically set the visiblility of #PRIM_MD.ListIcon

That didn't work for me. Had to include the Get_Entry command

Code: Select all

* go through the list and make Phone Icon Visible if a mobile device.
For Each(#Item) In(#List.Items)
Get_Entry Number(#Item.Entry) From_List(#List)
#PhoneIcon.CurrentItem.Visible := (#Sys_Web.Device = Mobile)
Endfor
by gstenstrom
Tue Dec 18, 2018 8:12 am
Forum: Questions & Answers
Topic: Dynamically set the visiblility of #PRIM_MD.ListIcon
Replies: 3
Views: 3208

Dynamically set the visiblility of #PRIM_MD.ListIcon

I need to dynamically set the Visible property on the #PRIM_MD.ListIcon if the list is being view on a mobile device Here is the list. Define_Com Class(#PRIM_MD.List) Name(#List) Displayposition(2) Layoutmanager(#LayoutList) Left(0) Parent(#COM_OWNER) Rowheight(89) Tabposition(1) Top(0) Itemsperrow(...
by gstenstrom
Sat Dec 08, 2018 3:38 am
Forum: Questions & Answers
Topic: Phone Number Link
Replies: 0
Views: 5375

Phone Number Link

I have a Phone Number Field with a Reusable Part for the Visualization. It is setup as the default. The Reusable Part displays the phone number in a Html container so it can be clicked within a mobile app and call the number. '<a href="tel:' + #Value + '">' + #Value + '</a></div>' This works okay if...
by gstenstrom
Tue Nov 06, 2018 1:25 am
Forum: Questions & Answers
Topic: Refresh a changed #PRIM_TBLO.Item
Replies: 3
Views: 1413

Re: Refresh a changed #PRIM_TBLO.Item

Thanks for the post. I see where I missed adding the Component Tag to #LayoutItemButtons.

I reworked my code to use the #PRIM_DCOL you suggested. This technic will be a big help going forward.

Thanks again,
Glynn
by gstenstrom
Sat Nov 03, 2018 7:24 am
Forum: Questions & Answers
Topic: Refresh a changed #PRIM_TBLO.Item
Replies: 3
Views: 1413

Refresh a changed #PRIM_TBLO.Item

I'm dynamically creating a layout grid using #PRIM_TBLO.Column and #PRIM_TBLO.Item To start with I have 4 #PRIM_TBLO.Rows already defined. After I create the grid with panels in the first row, a button is added that spans 2 of the columns using the Layout Item (#PRIM_TBLO.Item) There is a click even...
by gstenstrom
Sat Sep 22, 2018 6:14 am
Forum: Questions & Answers
Topic: Access a different file member
Replies: 1
Views: 623

Access a different file member

I have a work file with multiple members and would like to use the "Select" statement against a specific member. I don't see a parameter for Member in the Select command. I tried to do an override but that doesn't work. Does anyone know how to accomplish this? #wstring1 := 'ovrdbf file(' + #wFile + ...
by gstenstrom
Fri Nov 17, 2017 5:52 am
Forum: Questions & Answers
Topic: Programmatically Close a Web Page
Replies: 6
Views: 1741

Re: Programmatically Close a Web Page

Maybe explaining what I'm doing might help. I have an email where the body is HTML. It has a link to this Web Page that extracts the URL Parameters and runs the Server Module. http://mskgbn1t:81/dcxpgmlib/dev/ocwpgs01.html?lang=eng&xfile=/qntc/bbmskbcsp01/ocs/dev/PUBLISHED/3130_B.B.s_Fredericksburg_...
by gstenstrom
Thu Nov 16, 2017 6:23 am
Forum: Questions & Answers
Topic: Programmatically Close a Web Page
Replies: 6
Views: 1741

Programmatically Close a Web Page

Hi,
I have simple Web page that calls a server module to download a file. I would like to automatically close the Web page when the server routine is successful.
I have search high and low and not finding anything.
Looking for the Javascript equivalent to window.close()
by gstenstrom
Sat Jun 17, 2017 2:18 am
Forum: Questions & Answers
Topic: new line '\n' replacement in #PRIM_TEXT or Field
Replies: 4
Views: 2098

Re: new line '\n' replacement in #PRIM_TEXT or Field

Thanks for the help. This worked.

Code: Select all

Define Field(#sTemp) Reffld(#OC18_EmailHTML)
#CarriageReturn := (13).AsUnicodeString /* Hex 0D */
#LineFeed := (10).AsUnicodeString /* Hex 0A */

#sTemp := #ebNote
#OC18_EmailHTML := #sTemp.ReplaceAll( #LineFeed '<br>' )
by gstenstrom
Thu Jun 15, 2017 3:10 am
Forum: Questions & Answers
Topic: Split String into Array
Replies: 1
Views: 952

Re: Split String into Array

This comes from SplitString xDemoUtilities I copied it to have our own which I use below * Utilities - Variety of commonly used methods Define_Com Class(#OC_RP_DemoUtilities) Name(#Utilities) Define Field(#w_char) Type(*CHAR) Length(1) Define Field(#w_token) Reffld(#STD_TEXT) Define Field(#wlstListC...
by gstenstrom
Thu Jun 15, 2017 1:41 am
Forum: Questions & Answers
Topic: new line '\n' replacement in #PRIM_TEXT or Field
Replies: 4
Views: 2098

new line '\n' replacement in #PRIM_TEXT or Field

I'm using #PRIM_TEXT for entry of notes. When the user enters a carriage return, a '\n' in sent to the our iSeries. We then read these notes and strings them together with HTML Code in the HTML Container which doesn't recognizing the carriage return. My problem is replacing the '\n' with '<br/>' . ....
by gstenstrom
Wed May 03, 2017 1:29 am
Forum: Questions & Answers
Topic: Trying to get SMTPMAILSERVICE working
Replies: 2
Views: 1239

Trying to get SMTPMAILSERVICE working

Hi, Following an example and your documentation, I'm not able to send an Email through this service. Does something need to be running in the background on our iSeries? I tried both the iSeries IP address and our Mail router ip addess, still no luck. It appears each BIF runs okay except for the last...
by gstenstrom
Fri Mar 24, 2017 12:38 am
Forum: Questions & Answers
Topic: HTML Editor and Log File/Field changes
Replies: 16
Views: 5397

Re: HTML Editor and Log File/Field changes

I'm using the .FieldAttributeAsString function to get some information on the field. I don't see an attribute or property for the Identifier. Is this available within my trigger function? FieldAttributeAsString is limited to returning field definition data such as the Description or the column head...
by gstenstrom
Thu Mar 23, 2017 1:48 am
Forum: Questions & Answers
Topic: HTML Editor and Log File/Field changes
Replies: 16
Views: 5397

Re: HTML Editor and Log File/Field changes

I got my trigger function to work but I have a few questions. First I need to track the user that changed the data. We will be using VLF One against our iSeries server. I tried *USER, #USER and it gave me DCXPGMLIB. I tried the other *USER... and *WEBUSER and those are blank. Is there something we n...
by gstenstrom
Tue Mar 21, 2017 12:33 am
Forum: Questions & Answers
Topic: HTML Editor and Log File/Field changes
Replies: 16
Views: 5397

Re: HTML Editor and Log File/Field changes

Thanks, that worked. I didn't realize you could attach a file Trigger to any of the fields.
by gstenstrom
Sat Mar 18, 2017 7:50 am
Forum: Questions & Answers
Topic: HTML Editor and Log File/Field changes
Replies: 16
Views: 5397

Re: HTML Editor and Log File/Field changes

Hi MarkD, I went ahead and setup your example on the XEmployee Trigger. I created a Process and Function but being new to Lansa I don't know enough about them and how they are run or executed. I went ahead and tried to Executed the Process via the IDE which started the process. I then ran the XEmplo...
by gstenstrom
Thu Mar 16, 2017 7:10 am
Forum: Questions & Answers
Topic: HTML Editor and Log File/Field changes
Replies: 16
Views: 5397

HTML Editor and Log File/Field changes

Hi, I'm new to Lansa and need help on several fronts. I have been through eLearning and looked around in the IDE and Forums and I'm not seeing some of the things we need for our new VLFOne project. First, I need a HTML Editor like the one you have here in the forum. Is this part of VLFOne? Need it t...