Fetch and Use not working, no error message
I need help with the following code that i have inserted in 'On user input'. All works except the last one,
input.Travel1 . The only thing I can think of is that this field is of different type then the others. It is type (long) in both forms and the others are type (string) in both forms.
- if (input.Store_Number1 != null)
{
if (input.Store_Name != null)
{
dat = Add_a_Store [ID == input.Store_Number1];
input.Store_Name = dat.Store_Name;
}
if (input.State != null)
{
dat = Add_a_Store [ID == input.Store_Number1];
input.State = dat.State;
}
if (input.Zip_or_Postal != null)
{
dat = Add_a_Store [ID == input.Store_Number1];
input.Zip_or_Postal = dat.ZIP_or_Postal;
}
if (input.Brand1 != null)
{
dat = Add_a_Store [ID == input.Store_Number1];
input.Brand1 = dat.Brand;
}
if (input.City != null)
{
dat = Add_a_Store [ID == input.Store_Number1];
input.City = dat.City;
}
if (input.Travel1 != null)
{
dat = Add_a_Store [ID == input.Store_Number1];
input.Travel1 = dat.Travel2;
}
}