How to get the LaborHedSeq and LaborDtlSeq

Hi Guys, I need to add some information in Character01 LaborDtl table, so I was researching and I need to create some links between the adapters and the table.

so I am doing something like this:

LaborApprovalAdapter adapterLink = new LaborApprovalAdapter(oTrans);

	try
	{
		if(adapterLink.BOConnect())
		{
			if (adapterLink.GetByID(LaborHedSeq, LaborDtlSeq))
			{
				// code to add the info
				
			}

		}

	}

So, the Question is, how can I get this LaborHedSeq, and the LaborDtlSeq in order to put in the GetByID method?

Thank you for your support

How is this getting triggered and where?

Well, I’m doing this on the MES start indirect activity, and I’m triggered this method here:

private void oTrans_laborAdapter_AfterAdapterMethod(object sender, AfterAdapterMethodArgs args)
{
// ** Argument Properties and Uses **
// ** args.MethodName **
// ** Add Event Handler Code **

	// ** Use MessageBox to find adapter method name
	// EpiMessageBox.Show(args.MethodName)
	switch (args.MethodName)
	{
		case "Update":
			insercionNombre(// here comes the info requested LaborHedSeq, LaborDtlSeq);	
		break;
	}
}

private void insercionNombre (string LaborHedSeq, string LaborDtlSeq)
{

	/*LaborApprovalAdapter adaptador = new LaborApprovalAdapter(oTrans);
	
	try
	{
		if(adaptador.BOConnect())
		{
			if (adaptador.GetByID())
			{
				
				
			}

		}

	}

	catch (Exception ex)
	{
	EpiMessageBox.Show("No se pudo hacer la conexión" + ex.Message);
	
	}

	adaptador.Dispose();*/
	
	
}

Thank you

Why not create a BPM to insert the information into Character01? It will be much easier.

really? I think this option needs knowledge in Progress and I don’t have it…

I was doing the easiest way, just adding a TextBox on the windows form, and then binding this control with start.Character01 View, it works once, but then didn’t, so I started working with this custom.