TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Keorapetsi Matseme
1.4k
305
2.4k
Get fieldByName Sage300 accpac session
Mar 25 2021 7:27 PM
I want to integrate data from my sql DB to Sage 300 accpac
When getting PORCP1headerFields.FieldByName("RCPHSEQ")
returns Null object exception error
What I have tried:
public
override
void
InsertInvoiceHeader()
{
PORCP1header.Order = 1;
PORCP1header.Order = 0;
PORCP1headerFields.FieldByName(
"RCPHSEQ"
).SetValue(
"0"
,
false
);
// Receipt Sequence Key
PORCP1header.Init();
PORCP1header.Order = 1;
PORCP1detail1.RecordClear();
PORCP1detail3.RecordClear();
PORCP1detail4.RecordClear();
PORCP1detail6.Init();
PORCP1detail2.Init();
sRcpSeq = PORCP1headerFields.FieldByName(
"RCPHSEQ"
).Value.ToString();
PORCP1headerFields.FieldByName(
"RCPNUMBER"
).SetValue(
base
.dsHeaders.Tables[0].Rows[
base
.counterIH][
"RCPNUMBER"
].ToString(),
true
);
// RECEIPT NUMBER
}
Reply
Answers (
0
)
Send Email By Send Grid,
Export a PDF Using Existing HTML URL Using Asp.Net MVC