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 - ntnewbies

Pages: 1 2 [3] 4 5 ... 11
31
Web Server - Ask For Help / chat field in netwebform
« on: November 29, 2021, 07:38:37 PM »
hi
what is the use of the chat form field type?

i need to create AI Chat like page. The first screen will ask question with some answers as option. when they select the answer, then i need to show another set of question. some question can have 2 answer option. some will have more than 2 option. thus, both question and answer will be in a separate database.

Please give some ideas on how to do this?

Thank you

regards,
Jason
nt11.53
c11

32
Web Server - Ask For Help / text for select button
« on: November 09, 2021, 12:13:47 AM »
hi
in a browse, when i put a select button without any text, it shows fine with icon.
if i put a text eg 'Select this record' then the button is not resized accordingly to show both text and icon.
how do i fix it?

regards,
jason
nt11.51 c11

33
Web Server - Ask For Help / Re: Tree Field Type
« on: November 05, 2021, 08:59:05 PM »
Please do Niels. Waiting for the magic.

Hi Gordon

No Unfortunately not. The plan is that I will attend in a Thursday webinar, but I haven't had time yet.
But it's probably very simple, we just need to have cracked the code ;-)
I will update you when I have found the magic.....

/Niels

34
Web Server - Ask For Help / Re: json format in post data
« on: August 19, 2021, 10:17:25 PM »
thanks bill and bruce for the tip.

will try again.


jason

35
Web Server - Ask For Help / json format in post data
« on: August 16, 2021, 02:09:42 AM »
hi everyone

i am making an api call and i need to provide some json info inside the post data

postdata = st.getvalue()
posturl = 'api.testdata.payme'

net.post(posturl,postdata)


sample post data:

{
    "order" : {
        "amountOfMoney" : {
            "currencyCode" : "USD",
            "amount" : 2345
        },
        "customer" : {
            "merchantCustomerId" : "1234",
            "billingAddress" : {
                "countryCode" : "US"
            }
        }
    },
    "hostedCheckoutSpecificInput" : {
        "variant" : "testVariant",
        "locale" : "en_GB"
    }
}


usd, 234, 1234, US should be variables.
how do i put it inside string theory?

i have tried the following way but compiler gives error of misused of {{

st.setvalue('{order": {"amountOfMoney" : {"currencyCode" : "' & LOC:CurrencyCode & '","amount" : ' & LOC:Amount......&'}}'

regards,
Jason
nt11.53
c11




36
Web Server - Ask For Help / Re: JWT Json Web Token
« on: July 22, 2021, 07:29:19 PM »
thank you very much bill and bruce.

jason

37
Web Server - Ask For Help / JWT Json Web Token
« on: July 20, 2021, 01:51:35 AM »
hi
i need to Create the JWT token (https://jwt.io/) with the following claims:

{
    "iss": "your_api_key",
    "ist": "project",
    "iat": current_timestamp_in_seconds,
    "exp": expire_timestamp_in_seconds,
    "jti": "jwt_nonce"
}


i was told to run a phyton script to get the token

import jwt
import time
import uuid
print jwt.encode({"iss": "my-account-API-key",
    "iat": int(time.time()),
    "exp": int(time.time()) + 180,
    "ist": "project",
    "jti": str(uuid.uuid4())},
    'my-API-secret',
    algorithm='HS256')

how to do this in nettalk??

jason
c11
nt11.51

38
Web Server - Ask For Help / Re: jquery version conflicts
« on: April 22, 2021, 10:55:05 PM »
hi bruce,
no it is not working.



if you notice at the bottom of the page is nettalk contact form with lookup button affected due to two different version of jquery.

if i remove the jquery-2.2.4.min.js reference, then nt works but the styles of the html suffers.

regards,
jason


39
Web Server - Ask For Help / jquery version conflicts
« on: April 21, 2021, 10:51:24 PM »
hi,
i have included some html codes that requires jquery-2.2.4.min.js
however, this breaks the nt form that is in the same page. NT is using version 3.3.1

it gives the error: Uncaught TypeError: $(...).ntbrowse is not a function

i have tried the following noconflict method with no success.

<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
 <script type="text/javascript">
             $(...).ntbrowse = $.noConflict(true);
        </script>


any suggestions?

regards,
jason
nt11.51
c11

40
Web Server - Ask For Help / Re: adding google analytic via embed
« on: April 13, 2021, 01:25:45 AM »
hi bruce,
Include script adds the embed right under footer before /body

I need to add the code before /head.

i can use addscript under web server to code the script before the head. this works if i directly assign value. But at this point,  p_web.GSV not recognise and i cant get session value

i have tried addscript under web handler but it is not showing.

i have tried the following method: assign the value to returnvalue. used p_web.script.
nothing works.



jason


41
Web Server - Ask For Help / adding google analytic via embed
« on: April 12, 2021, 12:39:05 AM »
hi,
i have google analytic stored in a database for each customer.
i need to include it in the <head> before loading the customer page.
i have the value stored in a session value.
May I know which embed point and the code to include the script?

i have tried p_web.addscript(p_web.gsv('cus_googleanalytic')) in webhandler - add script embed point
but it is not reflecting in the source code of my customer page.

jason
nt11.51
c11

42
hi bruce,
hope this attachment works.


43
Web Server - Ask For Help / Share Link feature
« on: April 03, 2021, 01:23:46 AM »
hi,
i have  a browse (Procedure Name: Products) in grid format and view button and i wanted to put a share button and i need to generate the link for it.
If it is to share link for browse, i could use the anchor feature. Thus, i can generate link like this : www.mywebsite.com/products?a=100


However, the record id 100 may have more detailed information in the form (Procedure name: ViewDetail). Therefore, i need to generate a link so that the user can open the form directly.

for the form, under advanced tab, i put a session value (ChosenProductID).

the link : www.mywebsite.com/viewdetail?a=100 does not work consistently. Sometimes i get record not found.
the link: www.mywebsite.com/viewdetail?chosenproductid=100 does not work too.

Any advice to get this done correctly?

thanks

jason
nt11.51
c11

44
hi,
i have a field named BLI:CompanyProfile and i have 3 fields in a form,
one to upload. one as display. another as string.
upload works and display shows the value correctly. but if i populate it in string, then it shows the W.
it works ok in previous nt version.

attached is the snapshot.

it happens in text field too but for that, i use st:parameters to fix it.

jason
nt11.51
c11

45
Web Server - Ask For Help / Re: SQL Collation for multiple character sets
« on: February 14, 2021, 11:21:36 PM »
Hi Ubaidullah,
Not sure if it works for you. Try this and see:

you need to put a line of code before and after the field that requires support of multiple char sets. e.g:

routine -> fruitname field -> 4 value routine

put this embed:
 p_web.site.HtmlCharset = 'DB2312'


then another embed point:

routine -> fruitname field -> 5 Inside Value Routine

put this embed:
 p_web.site.HtmlCharset = 'utf-8' 


regards,
jason
nt11.50
c11



Pages: 1 2 [3] 4 5 ... 11