Caveat: Hiding Controls

yeah, different types of business between the two of us. We have a lot of small quantities to make custom engineered product. 20 is a lot for a qty for us, so to use E-10 as designed we have a lot of operations to report. It’s pretty overwhelming and were having trouble figuring out how to manage it.

I really like the part number and description add, the asm and mtl sequence numbers are a bit cryptic.

Are you using SSRS for the label printing?

No, my company still has banned me from accessing the SSRS server to get everything working properly (true story, it took me 2 months to get permissions into E10 test database).

I use bartender and some custom code to generate “trigger files”, it’s not too difficult and very flexible.

If you would like the code to get the PN/Desc on your screen I’d be happy to share it.

We have bartender too. We use it mostly with excel right now dropping out CSV files. It’s a lot easier to make the reports/labels in there. I just started dabbling with SSRS and have a lot to learn. I just figured out how to drop the trigger file from the BAQ export a couple of weeks ago so that lends itself to using bartender more. I’m sure I will learn how to add the custom code to add that into a button someday soon.

Thanks for showing what you’ve been working on.

1 Like

I tried to close a form that does not work…

My trials
using GUID
EpiBaseForm frm = (EpiBaseForm)(csm.GetNativeControlReference(“88EEE34C-4CE7-4fc6-902C-B55512338CC9”));
frm.Close();
using form collection :
Form formtoclose=null;
foreach (Form f in Application.OpenForms)
{

        if (f.Name == "ReqEntryForm")
        {
            formtoclose = f;
        }
    }
    if(formtoclose!=null)
    formtoclose.Close();

Even hide / time delay nothing works to skip the error . May be request entry form highly dependent and cant be closed???

Form is getting closed but getting following error. what may be the issue. Form name: requisition entry form

![image|690x148](upload://vFOZtSdFGR7sMOEV0y1Lu1u8fTk.png) 

![image|690x232](upload://tS11DfhgTNVo0WBYlcZyzGP8kR.png)

What are you trying to do? This isn’t related to the above post…
Looks like you are trying to close a form? Please open a new thread.

Well you’re on a roll for Epicor Trivia - why not raise the ante:
Why can I not use csm and get ref to form, and the call Close()?

Erp.UI.App.WorkQueueEntry.WorkQueueForm frm = (Erp.UI.App.WorkQueueEntry.WorkQueueForm)csm.GetNativeControlReference("2dcd1674-5e34-4d98-b493-c75747027376");
frm.Close();```

This is already posted and you have given some suggestion for closing the form. that’s why continued in this thread

1 Like

What are you trying to do? and from where?

My requirement :

Deploy the Requisition To-Do List on a separate stand-alone menu item instead of having it as an action item in the Requisition Entry screen.

In the requisition Entry i created one customization. In the page load of the customization i have done this code

oTrans.InvokeToDoList();

So it is launching “requisition todolist” , but while closing todolist , requisition entry opens.

I want to close requisition entry.

so i coded the following codes on page load to close the requisition entry. It is closing but with error

Form formtoclose=null;
foreach (Form f in Application.OpenForms)
{

        if (f.Name == "ReqEntryForm")
        {
            formtoclose = f;
        }
    }
    if(formtoclose!=null)
    formtoclose.Close();

EpiBaseForm frm = (EpiBaseForm)(csm.GetNativeControlReference(“GUID”));

frm.Close();

error screenshots i already uploaded in this thread. please browse up the post and check.

object reference error after closing. any suggestion?

If I am understanding correctly, you want to close an unrelated window. You cant do that with Epicor, but there may some underlying Windows tricks you can use to hunt down and kill the desired window. The question is, would it require “unsafe” code, because Epicor does not allow unsafe code in customizations (it requires a compiler directive).

any way let me learn. plz share the sample code. Thanks a ton for your time and reply:)

Also i need some suggestion for this. plz check the below link

This is way is it possible to use for my requirement to make to requisition todolist as a standalone screen.

In the Batch Invoice Printing, I tried to do this following the steps outlined by Jose below, but it did not work. The sidebar keeps returning if I move the mouse over that part of the form.

These are the steps:

  • No Exit customization mode,
  • Open the Form
  • UnDock It (Push Pin)
  • Then go to Tools or Actoins -> Save Layout
  • Then go to Tool -> Customization
  • Make a Change
  • Save it

Is there something I am missing?