Enable a field for editing in an epiUltraGrid

Hello,

I have an employee who would like to be able to add text to a comment field in the ‘Apply Credit Memo’ screen under the ‘Applied Invoice’ epiUltraGrid right now it is hidden but not set to read only.
I created a customization that reveals it. I also tried various ‘Modify Extended Properties’ in the wizard to enable it, but it hasn’t helped.
What is the best way to enable for editing?
Any and all help is appreciated.

Thanks,
Shawn

Are you sure the epidataview column that it’s bound to isn’t read only?

How do you mean? Still trying to learn so not sure where you are talking about.
If I go to Extended Properties, it is not checked ‘Read Only’.
It does say ‘Allows user to enter comments about the transaction. This is only applicable with TranType = “Adjust”.’
How would the tranType be set?

I assume you are looking at the exteneded properties of the grid itself. I am talking about the EpiDataView that holds the actual data.

If you use Tools>Object Explorer in customization. Then click data objects you see all of the dataviews. In this snippet (mostly unrelated) you can see the field I am looking at is readonly. You can use the customization wizard to fix that I believe.

I followed what you showed me and this is what it has.

Any other thoughts? Any help is definitely appreciated.

Thanks,
Shawn

Ok, let me back up. Is this issue that the text box on the screen is disabled? Like greyed out and cant change the text. I know that you said you’ve enabled it but sometimes the std controls can be resistant to change. If what I described is the problem do this:
Step 1: Use toolbox to create a new custom control of the type you need
Step 2: Place it over the old control (to hide the old - if needed).
Step 3: Setup the EpiBinding (should be same as the original control).
Step 4: Cross fingers.

Sorry,

I think you misunderstand. The field in in an epiUltraGrid.

It was a hidden field and I made it visible. Now I need to make it to where you can add text to it.

Any ideas? Or will I need to see if I can set up a UD field and they can populate that with their info/

Maybe you could provide a small code snippet of what you’re doing. It may spark some ideas.

Might be totally wrong here but since you are are applying a credit to a posted invoice would that not basically lock that dataset? Not sure any editing of the actual invoice record is possible after that point?

1 Like

@shobdy
I was able to do exactly this. Is it still grayed out for you when you try to type anything into it? Is it before you actually apply the memo?

All I did was make the field visible.

1 Like

Right now there is no code snippet.

Basically, I was asked to make the EpiUltraGrid field ‘Comments’ visible and editable.
This is in the screen ‘Apply Credit Memo’.

If it is not possible, that is what I will tell the employee and will look into a different way of doing it.

@danbedwards - I don’t know enough to answer but you are probably right.

@duckor - I made the field visible.
I ‘Created New Document to Apply’ and set to ‘Credit Memo/Correction Invoice’.
I clicked the ‘Document’ button and selected an invoice number.
I then created ‘New Invoice’. I searched for an invoice number in the Invoice field of the ‘Applied Invoices’.
I then looked at the comment field. It is gray and will not let me type in it.

Are you doing something different?

I also wanted to say I appreciate all the input I am getting. All this really helps me get better at this.

Thats probably where the difference is. I do not have any invoices to test and I saw the comment section availble to edit BEFORE I entered an invoice number.

Hey,

I gave all the info to the employee and they said to not worry about it. So I guess I will table this discussion until the next time I am asked to do this (which can be between tomorrow and never, lol).

I again wanted to thank all of you for the input and support on my quest for knowledge.

Shawn

1 Like