NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DonRidley

Pages: [1] 2 3 ... 39
1
Hello Casey,

I think you'll have to look at the browse's Validate::YourTagField  Routine. 

Add code to change that field's value after you have clicked your Tag All button.

Then when you refresh your browse it re-validates that field with the new value.

Hope that helps,

Don

2
Hello Nelson,

I'm also working with totals.  I'm doing some work with running balances as well.

The only thing I have found so far that consistently works, with decent speed, is using Views with very focused filters and keys.

I create my own local procedures, call the procedure, and get a return value.

I can honestly say, and you'll probably agree, totals and running balances are a pain the....well you know.  ;D

Don

3
Web Server - Share Knowledge / Re: NetTalk and OnsenUI Example
« on: April 08, 2019, 03:15:52 PM »
I appreciate the vote of confidence but I really didn't do anything other than copy and paste.

I'm anxious to experiment with NT browses and forms with this framework. 

I would be happy to do a webinar once I have few more pieces of the puzzle put together.

See ya!

Don

4
Web Server - Ask For Help / Re: User option GUID
« on: April 08, 2019, 05:17:52 AM »
I don't know if you're using TPS or SQL but...

From the FM3 docs:

Quote
To prime a GUID field

AutoUP will automatically prime each empty GUID field it finds during upgrade. The field must be named GUID, or PRE:GUID and must be a STRING(16). NOTE: Not available for SQL files at the time of writing this doc.

Requirements for disconnected apps:  (From the NT Docs)

Quote
The logic behind these requirements are discussed below, but this is the checklist of requirements (for a Clarion app):

    Each table needs a GUID field - type String(16)
    Each table needs a GuidKey, marked as unique, on the GUID field.
    Each table needs three TimeStamp fields, all of type Real, TimeStamp, ServerTimeStamp and DeletedTimeStamp. These should have external names of ts, sts and dts respectively.
    Each table needs a ServerTimeStampKey key on the ServerTimeStamp field. The key is not unique.
    Each table needs a TimeStampKey on the TimeStamp field. The key is not unique.
    Whenever a record is updated, TimeStamp must be set to the current time stamp. In Clarion apps this is usually done with the NetTalkClientSync global extension template.
    Whenever a record is updated on the parent server, ServerTimeStamp must be set to the current time stamp.

Remember the GUID field has two strict rules.

    The contents of the field must NEVER be changed.
    Any attempt to populate it using other data should be avoided. It should contain pure randomized characters.

I hope this helps you,

Don

5
Web Server - Share Knowledge / NetTalk and OnsenUI Example
« on: April 08, 2019, 05:05:31 AM »
Thought y'all might like this.

UPDATE:

If you want to play around with different OnsenUI elements, check out the following link.  Select an element from the drop down.

https://onsen.io/playground/

Example app:
Clarion 11.0.13401
NT 11.07
StringTheory 3.06

Don


6
Web Server - Ask For Help / Re: Filter on File Drop
« on: April 05, 2019, 01:43:18 AM »
Hi Don,

Good answer - just one thought;

>> The NetTalk drop downs use Views.  Make sure Dep:Zone is in the View.

Fields used in _Filters_ do not need to be PROKECTED in the VIEW. While that's a fairly common Clarion myth it has no basis in fact.

cheers
Bruce

Thanks for the reminder Bruce!  Just keeping you on your toes!  LOL

7
Web Server - Ask For Help / Re: Filter on File Drop
« on: April 04, 2019, 02:32:57 PM »
Assuming Strings...
'Dep:Zone = ' & '''' & p_web.GSV('StoredEmployeeZone') & ''''

or maybe even...
'UPPER(CLIP(Dep:Zone)) = ' & '''' & UPPER(p_web.GSV('StoredEmployeeZone')) & ''''  !No need to clip the Session Value

Assuming Longs...
'Dep:Zone = ' & p_web.GSV('StoredEmployeeZone')

Where StoredEmployeeZone = Session value stored when user logs in.

There are better ways to construct the string filter but it works for me.

The NetTalk drop downs use Views.  Make sure Dep:Zone is in the View.

Don

8
Hi

I have done that by adding a button, caling the popup. Then hiding the button with css and finaly trigger the button with jQuery - $( "#buttonid" ).trigger( "click" );

Works fine in my project.

/Niels

Clever! 

9
Check out p_web.OpenDialog()

It creates, in HTML, a call to ntd.push().

Just a heads up, this can be a tedius process to get right.  p_web.OpenDialog is just one of several steps to get popups to work correctly. 

Don

10
You'll find that the hidden fields are being hidden by CSS - nt-hidden.  I don't remember where, but there's a call to a JavaScript funtiocn to un-hide the element.  But, it diesn't answer why they are being hidden in the first place.

11
Hello Rene,

Are you calling the form from a menu item or a browse?

If I remember correctly, I think you'll find that the form's primmiary key is not getting primed.

One thing I do to make debugging easier is to go in to nt-idb.js and un-comment out all of the console.log(""); entries.  You can then watch the underlying JavaScript do its magic at runtime.  You'll see if the tables are opened and read properly.

See ya,

Don

12
Web Server - Ask For Help / Re: No matching Prototype
« on: March 07, 2019, 03:20:00 AM »
What Peter said.   ;D

You need WinEvent.


13
Web Server - Ask For Help / Re: Get ramdom ID from CreateButton
« on: March 06, 2019, 03:00:49 AM »
Having said that, I understand where you're coming from. 

I think that the potential for a large number of buttons necessitated the ID generation method.  It prevents conflicting ID's. 

14
Web Server - Ask For Help / Re: Get ramdom ID from CreateButton
« on: March 06, 2019, 02:43:57 AM »
There are many more ways to select an element other than the ID. 

*   $("*")   All elements
#id   $("#lastname")   The element with id="lastname"
.class   $(".intro")   All elements with class="intro"
.class,.class   $(".intro,.demo")   All elements with the class "intro" or "demo"
element   $("p")   All <p> elements
el1,el2,el3   $("h1,div,p")   All <h1>, <div> and <p> elements
        
:first   $("p:first")   The first <p> element
:last   $("p:last")   The last <p> element
:even   $("tr:even")   All even <tr> elements
:odd   $("tr:odd")   All odd <tr> elements
        
:first-child   $("p:first-child")   All <p> elements that are the first child of their parent
:first-of-type   $("p:first-of-type")   All <p> elements that are the first <p> element of their parent
:last-child   $("p:last-child")   All <p> elements that are the last child of their parent
:last-of-type   $("p:last-of-type")   All <p> elements that are the last <p> element of their parent
:nth-child(n)   $("p:nth-child(2)")   All <p> elements that are the 2nd child of their parent
:nth-last-child(n)   $("p:nth-last-child(2)")   All <p> elements that are the 2nd child of their parent, counting from the last child
:nth-of-type(n)   $("p:nth-of-type(2)")   All <p> elements that are the 2nd <p> element of their parent
:nth-last-of-type(n)   $("p:nth-last-of-type(2)")   All <p> elements that are the 2nd <p> element of their parent, counting from the last child
:only-child   $("p:only-child")   All <p> elements that are the only child of their parent
:only-of-type   $("p:only-of-type")   All <p> elements that are the only child, of its type, of their parent
        
parent > child   $("div > p")   All <p> elements that are a direct child of a <div> element
parent descendant   $("div p")   All <p> elements that are descendants of a <div> element
element + next   $("div + p")   The <p> element that are next to each <div> elements
element ~ siblings   $("div ~ p")   All <p> elements that are siblings of a <div> element
        
:eq(index)   $("ul li:eq(3)")   The fourth element in a list (index starts at 0)
:gt(no)   $("ul li:gt(3)")   List elements with an index greater than 3
:lt(no)   $("ul li:lt(3)")   List elements with an index less than 3
:not(selector)   $("input:not(:empty)")   All input elements that are not empty
        
:header   $(":header")   All header elements <h1>, <h2> ...
:animated   $(":animated")   All animated elements
:focus   $(":focus")   The element that currently has focus
:contains(text)   $(":contains('Hello')")   All elements which contains the text "Hello"
:has(selector)   $("div:has(p)")   All <div> elements that have a <p> element
:empty   $(":empty")   All elements that are empty
:parent   $(":parent")   All elements that are a parent of another element
:hidden   $("p:hidden")   All hidden <p> elements
:visible   $("table:visible")   All visible tables
:root   $(":root")   The document's root element
:lang(language)   $("p:lang(de)")   All <p> elements with a lang attribute value starting with "de"
        
[attribute]   $("[href]")   All elements with a href attribute
[attribute=value]   $("[href='default.htm']")   All elements with a href attribute value equal to "default.htm"
[attribute!=value]   $("[href!='default.htm']")   All elements with a href attribute value not equal to "default.htm"
[attribute$=value]   $("[href$='.jpg']")   All elements with a href attribute value ending with ".jpg"
[attribute|=value]   $("[title|='Tomorrow']")   All elements with a title attribute value equal to 'Tomorrow', or starting with 'Tomorrow' followed by a hyphen
[attribute^=value]   $("[title^='Tom']")   All elements with a title attribute value starting with "Tom"
[attribute~=value]   $("[title~='hello']")   All elements with a title attribute value containing the specific word "hello"
[attribute*=value]   $("[title*='hello']")   All elements with a title attribute value containing the word "hello"
        
:input   $(":input")   All input elements
:text   $(":text")   All input elements with type="text"
:password   $(":password")   All input elements with type="password"
:radio   $(":radio")   All input elements with type="radio"
:checkbox   $(":checkbox")   All input elements with type="checkbox"
:submit   $(":submit")   All input elements with type="submit"
:reset   $(":reset")   All input elements with type="reset"
:button   $(":button")   All input elements with type="button"
:image   $(":image")   All input elements with type="image"
:file   $(":file")   All input elements with type="file"
:enabled   $(":enabled")   All enabled input elements
:disabled   $(":disabled")   All disabled input elements
:selected   $(":selected")   All selected input elements
:checked   $(":checked")   All checked input elements

15
Web Server - Ask For Help / Re: Avoid ouput to Debug View
« on: February 20, 2019, 02:48:01 PM »
Is NetTalk logging turned on?


Pages: [1] 2 3 ... 39