NetTalk Central

Author Topic: EIP Lookups  (Read 5018 times)

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
EIP Lookups
« on: March 03, 2009, 03:40:12 PM »
Hi all,

NTV4.31.29 Firefox

I have problems with a date filed in an EIP browse.

If I disable the EIP field the lookup button can still be clicked by the user - it would be good if this can be hidden or disabled

If I click on the date lookup button it does not bring up the calander, it brings up an error message

Is it possible to have the lookup button next to the date field not underneath?

I am also having problems if I want another field to be a lookup, no lookup button appears.

Cheers,

Kevin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: EIP Lookups
« Reply #1 on: March 03, 2009, 11:00:39 PM »
probably because I've not done lookup support in EIP yet...
it's not trivial.

Drop-Downs work and are probably a better bet in the short term, at least
for cases where there are "relatively few" options.

I'll see if I can fix the date thing as well.

cheers
Bruce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: EIP Lookups
« Reply #2 on: March 04, 2009, 12:31:49 AM »
Hi Kevin,

<< If I disable the EIP field the lookup button can still be clicked by the user - it would be good if this can be hidden or disabled

disable it how? I added a condition to the EIP setting in the browse, but then what I see is the date turns back into a display string, and the button is not there at all.

>> If I click on the date lookup button it does not bring up the calander, it brings up an error message

fixed in PR34.

>> Is it possible to have the lookup button next to the date field not underneath?

in my test it _did_ come up alongside. Have you set the srtle for the browse, or the browse column away from the "nowrap" default setting?

Cheers
Bruce

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: EIP Lookups
« Reply #3 on: March 04, 2009, 02:30:32 AM »
probably because I've not done lookup support in EIP yet...
it's not trivial.

>>> oh that throws a spanner in the works...

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: EIP Lookups
« Reply #4 on: March 05, 2009, 09:42:50 PM »
I ended up just adding a button to the EIP browse to call my lookup screen and even surprised myself when I got it working.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: EIP Lookups
« Reply #5 on: March 05, 2009, 10:23:36 PM »
Hi Kevin,

Calling the lookup screen is ok with a button. However what technique are you using to write the change away? That's the bit I'm not 100% sure of yet. I want  it to work "the same" as the rest, but of course because it's going to a different page it's completely different to the rest.

I'm curious as to what approach you adopted.

cheers
Bruce

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: EIP Lookups
« Reply #6 on: March 05, 2009, 10:43:34 PM »
1) The button in EIP sends the value of the record of the browse I'm calling it from

2) I trap this value when the lookup opens with GetValue

3) I couldn't get the select button to appear so I added my own and added some server code behind it.

4) The server code gets the original record from the browse and updates the value from the record selected

Now step 4 I'm doing on the lookup screen but may need to move back to the original form as I noticed that it returns to the original form as this code is running. It worked but I can see a problem if it resets the EIP browse before the record is updated. What do you think?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: EIP Lookups
« Reply #7 on: March 06, 2009, 06:43:36 AM »
Hi Kevin,

does it still work if you get say the "Next" page, or resort the lookup browse?

You're probably ok as-is for simple lookups, but it probably needs a bit more work to become a generic technique. I should be able to get some time on it next week - if not then then definitely the week after. I had a deadline for this morning, which translates into some stuff to do before next thursday, but the pressure is coming off a bit so I should get more time for nettalk.

cheers
Bruce