cancel
Showing results for 
Search instead for 
Did you mean: 

Check if cursor is over a phone number

Former Member
0 Kudos

Hy everybody!

I try to build a SBO-AddOn that tells me if i'm on a Phone-Nr. Field.

SBO shows a small phone nerby the mousecursor, maybe it would be enough if i would know hot to check the Mousepointer, if it's the normal or the MousePointer with the small phone nerby...

Does anybody have other ideas?

How can i access the information on this "special Field Type". SBO seems to know this, otherwise it would'nt be able to show the small phone when the cursor is on a filled PhoneNr. Field. I tryed to find some infos in this Forum but i could'n find any Help's/HowTos... Maybe somebody knows a way to handle this !

Thank you very much !

Andreas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Andreas

Some Hints:

- Check the Item ID (Enable Debug Information in B1)

- In the Item Event:

If pval.ItemID ="xy" And pval.EventType=....GotFocus Then

...

HTH

Former Member
0 Kudos

Thank you !

That means i have to ask(filter) for each "Item ID" i want check?

It could be many Fields, Matrix and everithing i can put a Phone Nr in B1.

I tryed to find a solution that alows me to get the Information in general (like B1 does with the Mousepointer), after i want to ask if the Mousecursor is the "Phone"-Mousecursor (maybe the Phone Nr. Field has an special Type Info somewhere). How does B1 knows when it has to show the Phone-MouseIcon? I was not able to get this Information till now...

I hope it's not explained to complicated. Please ask otherwise.

Thanx ! Andreas

Former Member
0 Kudos

Hi Andreas,

Though B1 uses it, it is not exposing the event. And I think trying do it on your own will slow down performance.

Is it so important for the customer? Much work for little functionality (IMHO)

Regards,

Ibai Peñ

Former Member
0 Kudos

At the end i want to make a direct call to the "Clicked" Phone Nr. Everything's ok, but i'm not happy with the Code for the Phone-Nr. "detection". It's pretty much work to add everytime the same code for all the items i want to check. Imagine you "the digging" till i have found all PhoneNumbers Fields in B1...

I was looking for a easy way to find "PhoneNr. Fields" in general, i thougt it could makes easy to implement this functionality in other Forms to, no matter where the User is Clicking on a Nr., it could work "automatic". You would be able to put new TNr. fields in your Application without changing the Code, things like this...

but it looks like i musst do this the conventional way...

what you think ?

Thank You !

Andreas

Former Member
0 Kudos

Not any "easy" way...

Detect the fields, add the listener and then point to a generic function.

For new textboxes, create a class that automatically adds this behaviour.

I think the final user should know when the field is a phone(so the mouse cursor isn´t so important).

This are only generic advice, but I don´t see any other option.

Regards,

Ibai Peñ

Former Member
0 Kudos

Thank you!

So, i'm on the right way it seems.

I try to do it like you told me. It could take a while to find all Tel.Nr. fields,

but it seems to be the only way.

I think changing the mouse cursor on "New TNr. Fields" it's annyway not possible, if i can't get to the B1 "logic" that "knows" when it's this "Nr.-type" of a textfield.

Thank you for your advice!

It give's me new ideas!

kind regards!

Andreas

Answers (0)