project QadFinancials > class BMfgAddress > API query AdMstrByDomainByCode


query filter (table tFilter)


tcBusinessFieldNametcDataTypetcOperator
icDomainc=
icCodec=
tad_mstr.ad__chr01c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad__chr02c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad__chr03c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad__chr04c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad__chr05c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad__qad01c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad__qad02c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad__qad03c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad__qad04c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad__qad05c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_addrc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_address_idi=,>=,>,<>,<=,<
tad_mstr.ad_asn_datac=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_attnc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_attn2c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_barlbl_prtc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_barlbl_valc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_bk_acct1c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_bk_acct2c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_bus_relationc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_calendarc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_cityc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_coc_regc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_conrepc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_countryc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_countyc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_ctryc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_datet=,>=,>,<>,<=,<
tad_mstr.ad_domainc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_edi_idc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_edi_levelc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_edi_stdc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_edi_tpidc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_emailc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_email2c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_extc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_ext2c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_faxc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_fax2c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_formati=,>=,>,<>,<=,<
tad_mstr.ad_gst_idc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_intr_divisionc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_inv_mthdc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_langc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_last_filel=,<>
tad_mstr.ad_line1c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_line2c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_line3c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_misc1_idc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_misc2_idc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_misc3_idc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_mod_datet=,>=,>,<>,<=,<
tad_mstr.ad_namec=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_name_controlc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_phonec=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_phone2c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_po_mthdc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_pst_idc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_refc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_sch_mthdc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_sortc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_statec=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_tax_inl=,<>
tad_mstr.ad_tax_reportl=,<>
tad_mstr.ad_tax_typec=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_tax_usagec=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_tax_zonec=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_taxablel=,<>
tad_mstr.ad_taxcc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_templ=,<>
tad_mstr.ad_timezonec=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_tp_loc_codec=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_typec=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_user1c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_user2c=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_useridc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_vat_regc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.ad_wk_offseti=,>=,>,<>,<=,<
tad_mstr.ad_zipc=,>=,>,<>,<=,<,begins,can-do,matches
tad_mstr.oid_ad_mstrd=,>=,>,<>,<=,<


Parameters (internal)


icDomaincharacterparameter to select on domain
icCodecharacterparameter to select on the address code (ad_addr)


query condition


  each ad_mstr where
ad_mstr.ad_domain = icDomain AND
ad_mstr.ad_addr = icCode


query resultset tqAdMstrByDomainByCode


field namedata typedb fielddescription
tcad__chr01characterad_mstr.ad__chr01
tcad__chr02characterad_mstr.ad__chr02
tcad__chr03characterad_mstr.ad__chr03
tcad__chr04characterad_mstr.ad__chr04
tcad__chr05characterad_mstr.ad__chr05
tcad__qad01characterad_mstr.ad__qad01
tcad__qad02characterad_mstr.ad__qad02
tcad__qad03characterad_mstr.ad__qad03
tcad__qad04characterad_mstr.ad__qad04
tcad__qad05characterad_mstr.ad__qad05
tcad_addrcharacterad_mstr.ad_addrAddress
tiad_address_idintegerad_mstr.ad_address_idAddress ID
tcad_asn_datacharacterad_mstr.ad_asn_dataASN Default Data
tcad_attncharacterad_mstr.ad_attnAttention
tcad_attn2characterad_mstr.ad_attn2Attention
tcad_barlbl_prtcharacterad_mstr.ad_barlbl_prtBarcode Label Print Program
tcad_barlbl_valcharacterad_mstr.ad_barlbl_valBarcode Validation Program
tcad_bk_acct1characterad_mstr.ad_bk_acct1Bank Acct 1
tcad_bk_acct2characterad_mstr.ad_bk_acct2Bank Acct 2
tcad_bus_relationcharacterad_mstr.ad_bus_relationBusiness Relation Code
tcad_calendarcharacterad_mstr.ad_calendarCalendar
tcad_citycharacterad_mstr.ad_cityCity
tcad_coc_regcharacterad_mstr.ad_coc_regCoC Number
tcad_conrepcharacterad_mstr.ad_conrepNetting Logic
tcad_countrycharacterad_mstr.ad_countryCountry
tcad_countycharacterad_mstr.ad_countyCounty
tcad_ctrycharacterad_mstr.ad_ctryCountry Code
ttad_datedatead_mstr.ad_dateAdded
tcad_domaincharacterad_mstr.ad_domainDomain
tcad_edi_idcharacterad_mstr.ad_edi_idTrading Prtnr EDI ID
tcad_edi_levelcharacterad_mstr.ad_edi_levelEDI Standard Level
tcad_edi_stdcharacterad_mstr.ad_edi_stdEDI Standard
tcad_edi_tpidcharacterad_mstr.ad_edi_tpidTrading Prtnr Interface ID
tcad_emailcharacterad_mstr.ad_emailEmail
tcad_email2characterad_mstr.ad_email2Email
tcad_extcharacterad_mstr.ad_extExt
tcad_ext2characterad_mstr.ad_ext2Ext
tcad_faxcharacterad_mstr.ad_faxFax/Telex
tcad_fax2characterad_mstr.ad_fax2Fax/Telex
tiad_formatintegerad_mstr.ad_formatFormat
tcad_gst_idcharacterad_mstr.ad_gst_idTax ID - Federal
tcad_intr_divisioncharacterad_mstr.ad_intr_divisionIntraStat Division
tcad_inv_mthdcharacterad_mstr.ad_inv_mthdInvoices Via
tcad_langcharacterad_mstr.ad_langLanguage
tlad_last_filelogicalad_mstr.ad_last_fileLast Filing
tcad_line1characterad_mstr.ad_line1Address
tcad_line2characterad_mstr.ad_line2Address
tcad_line3characterad_mstr.ad_line3Address
tcad_misc1_idcharacterad_mstr.ad_misc1_idTax ID - Misc 1
tcad_misc2_idcharacterad_mstr.ad_misc2_idTax ID - Misc 2
tcad_misc3_idcharacterad_mstr.ad_misc3_idTax ID - Misc 3
ttad_mod_datedatead_mstr.ad_mod_dateModified Date
tcad_namecharacterad_mstr.ad_nameName
tcad_name_controlcharacterad_mstr.ad_name_controlName Control
tcad_phonecharacterad_mstr.ad_phoneTelephone
tcad_phone2characterad_mstr.ad_phone2Telephone
tcad_po_mthdcharacterad_mstr.ad_po_mthdPurchase Orders Via
tcad_pst_idcharacterad_mstr.ad_pst_idTax ID - State
tcad_refcharacterad_mstr.ad_refReference
tcad_sch_mthdcharacterad_mstr.ad_sch_mthdSchedules Via
tcad_sortcharacterad_mstr.ad_sortSort Name
tcad_statecharacterad_mstr.ad_stateState
tlad_tax_inlogicalad_mstr.ad_tax_inTax In
tlad_tax_reportlogicalad_mstr.ad_tax_reportTax Report
tcad_tax_typecharacterad_mstr.ad_tax_typeTax Type
tcad_tax_usagecharacterad_mstr.ad_tax_usageTax Usage
tcad_tax_zonecharacterad_mstr.ad_tax_zoneTax Zone
tlad_taxablelogicalad_mstr.ad_taxableTaxable
tcad_taxccharacterad_mstr.ad_taxcTax Class
tlad_templogicalad_mstr.ad_tempTemporary
tcad_timezonecharacterad_mstr.ad_timezoneTime Zone
tcad_tp_loc_codecharacterad_mstr.ad_tp_loc_codeTrd Partner Location Code
tcad_typecharacterad_mstr.ad_typeList Type
tcad_user1characterad_mstr.ad_user1Ufld1
tcad_user2characterad_mstr.ad_user2Ufld2
tcad_useridcharacterad_mstr.ad_useridUser ID
tcad_vat_regcharacterad_mstr.ad_vat_regVAT Registration
tiad_wk_offsetintegerad_mstr.ad_wk_offsetWeek Offset
tcad_zipcharacterad_mstr.ad_zipPost
tdoid_ad_mstrdecimalad_mstr.oid_ad_mstr
ad_mstrCustomcharactercalculatedcustom fields
ti_sequenceintegercalculatedprimary index
tc_rowidcharactercalculated = rowid(ad_mstr)


Internal usage


QadFinancials
method BAutoNumber.GetAutoNumber
method BCreditor.ValidateComponent
method BDebtor.ValidateComponent
method BDebtorEndUser.ValidateComponent
method BDebtorShipTo.ValidateComponent
method BMfgAddress.MaintainDataCreditor
method BMfgAddress.MaintainDataDebtor
method BMfgAddress.MaintainDataDebtorShipto
method BMfgAddress.MaintainDataEndUser
method BMfgAddress.ValidateComponent


Sample code: how to call this query through RPCRequestService (QXtend Inbound)

define temp-table ttContext no-undo
    field propertyQualifier as character
    field propertyName as character
    field propertyValue as character
    index entityContext is primary unique
        propertyQualifier
        propertyName
    index propertyQualifier
        propertyQualifier.

define dataset dsContext for ttContext.

define variable vhContextDS as handle no-undo.
define variable vhExceptionDS as handle no-undo.
define variable vhServer as handle no-undo.
define variable vhInputDS as handle no-undo.
define variable vhInputOutputDS as handle no-undo.
define variable vhOutputDS as handle no-undo.
define variable vhParameter as handle no-undo.

/* Create context */
create ttContext.
assign ttContext.propertyName = "programName"
       ttContext.propertyValue = "BMfgAddress".
create ttContext.
assign ttContext.propertyName = "methodName"
       ttContext.propertyValue = "AdMstrByDomainByCode".
create ttContext.
assign ttContext.propertyName = "applicationId"
       ttContext.propertyValue = "fin".
create ttContext.
assign ttContext.propertyName = "entity"
       ttContext.propertyValue = "1000".
create ttContext.
assign ttContext.propertyName = "userName"
       ttContext.propertyValue = "mfg".
create ttContext.
assign ttContext.propertyName = "password"
       ttContext.propertyValue = "".

/* Create input dataset */
create dataset vhInputDS.
vhInputDS:read-xmlschema("file", "xml/bmfgaddress.admstrbydomainbycode.i.xsd", ?).
vhParameter = vhInputDS:get-buffer-handle("tParameterI").
vhParameter:buffer-create().

assign vhParameter::icRange = "A"
       vhParameter::icRowid = ""
       vhParameter::iiRownum = 0
       vhParameter::iiNumber = 5 /* Number of records to read */
       vhParameter::icSortColumns = ""
       vhParameter::ilCountOnly = false
       vhParameter::ilForwardRead = true
       vhParameter::iiMaximumBrowseRecordsToCount = 0.

vhParameter = vhInputDS:get-buffer-handle("tFilter").
vhParameter:buffer-create().

assign vhParameter::<field-name-1> = <field-value-1>
       vhParameter::<field-name-2> = <field-value-2>
       ...

/* Connect the AppServer */
create server vhServer.
vhServer:connect("-URL <appserver-url>").

if not vhServer:connected()
then do:
    message "Could not connect AppServer" view-as alert-box error title "Error".
    return.
end.

/* Run */
assign vhContextDS = dataset dsContext:handle.

run program/rpcrequestservice.p on vhServer
    (input-output dataset-handle vhContextDS by-reference,
           output dataset-handle vhExceptionDS,
     input        dataset-handle vhInputDS by-reference,
     input-output dataset-handle vhInputOutputDS by-reference,
           output dataset-handle vhOutputDS).

/* Handle output however you want, in this example, we dump it to xml */
if valid-handle(vhExceptionDS)
then vhExceptionDS:write-xml("file", "Exceptions.xml", true).

if valid-handle(vhOutputDS)
then vhOutputDS:write-xml("file", "Output.xml", true).

/* Cleanup */
vhServer:disconnect().
assign vhServer = ?.

if valid-handle(vhInputDS)
then delete object vhInputDS.

if valid-handle(vhOutputDS)
then delete object vhOutputDS.

if valid-handle(vhExceptionDS)
then delete object vhExceptionDS.