1. Shin Jungi
  2. PowerServer Mobile (Obsolete)
  3. Wednesday, 24 June 2020 14:23 PM UTC

Hi, 

I want get il_new value.

Because new tag found then I want get il_new value.

below code 

Err C0051 unknown function name : oe_newtagfound 

-- below code

--------------------------------------------------------

Int il_new_tag, il_new

il_new_tag = 1
il_new = eon_mobile_nfcex.oe_newtagfound(il_new_tag)

 

How can use and which part missing ?

Regards,

Jungi

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 25 June 2020 15:42 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # Permalink

Hi Shin;

  Yes, that will still fail because you did not:

A) Inherit from eon_mobile_nfcex  (ie: ns_nfc )

B) In the inherited object - code the "oe_newtagfound" event (ie: ns_nfc )

C) Then declare the inherited object and then instantiate it ....

ns_nfc  =  lo_nfc

lo_nfc = CREATE ns_nfc    // NS => NonVisual Standard type

ns_nfc.of_open ( )

ns_nfc.of_getNdefRecord ( li_index, istr_nfcrecord )  // need to declare structure (See PS help)

....  // More processing as required

ns_nfc.of_close()

Destroy ns_nfc


HTH .. Regards ... Chris

Comment
  1. Shin Jungi
  2. Friday, 26 June 2020 00:26 AM UTC
Thanks Chris

Still not solve this problums

ns_nfc = lo_nfc : I don't undersand this means



My code Below

[Declare Instance variables]

//NCF Found

eon_mobile_nfcex ns_nfc





[Open ] Script

//NFC found TEST

Int il_new, il_new_tag

Long li_index

ns_nfc = CREATE eon_mobile_nfcex

ns_nfc.of_open()

ns_nfc.of_getNdefRecord ( li_index, istr_nfcrecord )



il_new_tag = 1



//il_new = ns_nfc.oe_newtagfound(il_new_tag) //- this function Error -> This line error

if save then

Err C0051 unknown function name : oe_newtagfound

What is missing ?





Bestregards,

Jungi













  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 24 June 2020 15:50 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 1

Hi Shin;

  Make sure that you have included the Appeon_Workarounds.pbl from the current PowerServer installation. This library should be located in the "C:\inetpub\wwwroot\appeon\developTempFile\appeon_workarounds" folder.

  The next thing is that this is an EVENT and not a function. So your code would not be calling it. Instead, you would add code to this event for the NFC object class. In order to do this, either A) add the NFC object as an NVUO to a Window class in the window painter and then code it from there OR b) Inherit from the "eon_mobile_nfcex" and then save this as an NVUO (ie: nvo_nfc). Now you can code the "oe_newtagfound" event on the new NVUO.

  Note that the "eon_mobile_nfcex" or its descendants are NVUO's and thus need a CREATE completed on them before using. However, taking alternative "A" as a class attached to a Window Class, the Window will do the Create/Destroy for you.

HTH

Regards ... Chris

Comment
  1. Shin Jungi
  2. Wednesday, 24 June 2020 23:48 PM UTC
Thanks Chris

But not yet solve it.



[Dedar Instance variables]

//NCF Found

//Window NVUO

eon_mobile_nfcex NVUO



[Open]

//NFC found

Int il_new, il_new_tag

il_new = NVUO.oe_newtagfound(il_new_tag)



But Same Error issue.

1. Window NVUO : also same

2. eon_mobile_nfcex NVUO



Which part missing or not.

Please recomment code.



I want to get "il_new" value.

Sucees found or not sucess found nfc tag.



Regards,

Jungi



  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.