x++


How to insert into a table field with value from a display method dependent of string


as you might know, this is a nice way to dynamically set values to fields.
myTable.(fieldName2Id(myTable.TableId, fieldNameStr)) = "This value";
myTable.insert();
What I am wondering about is if there is any way to do it in a similar fashion with display methods, just dynamically get the values from them?
If i have the Display method name (i.e. itemName()) how can I do this...?
something like this to demonstrate how i think:
methodNameStr = "ItemName";
myTable.myField = mytable.(methodName2Id(myTable.TableId, methodNameStr));
myTable.insert();
Use DictTable.callObject(medhodName, buffer).
Common myTable;
DictTable dt;
//<SampleOnly>
str methodNameStr = "itemDescriptionOrName";
InventTable tmpTab;
select firstOnly tmpTab;
myTable = tmpTab;
//</SampleOnly>
dt = new DictTable(myTable.TableId);
dt.callObject(methodNameStr, myTable);
info(strFmt("%1", dt.callObject(methodNameStr, myTable)));

Related Links

How to change the level of AX info messages
X++ unbound control
WeekOfYear in X++ using .net lib
How to tell what module has called the program
Getting the index of an array element of EDT Dimension
Destroy Object in X++
not able to run job in batch
Creating a folder on fileSystem dynamics ax
Can the X++ language be used for the following development?
How can you create a simple dialog box in Dynamics AX?
Reading a comma separated values (csv) file in dynamics ax
What is the function to get the system date and current date in Dynamics AX?
Dynamics AX 2009 - Modify insert into smmActivities from ProjTableWizard?
Axapta: How can the Table Name, Not the Table ID, be used as a select in the Select Dialog of the Database Log Report?
How do I get the previous field value in the modifiedField method of a Dynamic Ax table?
What is the best way to print columns from different tables on the same row using the Axapta reporting tool?

Categories

HOME
fuelux
gdb
c99
ggplot2
formal-languages
apache-spark-mllib
apiblueprint
solaris
devise
ms-access-2016
pdfbox
android-json
jax-ws
trac
special-characters
rtf
coin3d
glyphicons
aws-sdk
google-picker
blade
tosca
short-url
dapper-extensions
jquery-multiselect
apktool
linked-data
sinch
paperjs
finagle
magento-1.8
eviews
volatile
record
login-script
sql-delete
roblox
odroid
numberpicker
stringtokenizer
laravel-elixir
skylink
apriori
subclipse
bindingnavigator
signal-strength
pom.xml
flask-restful
lampp
automapper-5
wcftestclient
manova
mongotemplate
stdmap
tinkerpop
spring-data-couchbase
oozie-coordinator
seq
janus
donations
builtins
actor-platform
hadoop-2.7.2
webjars
parfor
flex4.6
windows-azure-queues
i386
grass
assertion
terracotta
qt5.2
rpart
sony-lifelog-api
apache-commons-daemon
git-ftp
osc
j-security-check
crowd
easyrtc
xml-namespaces
lambda-architecture
live555
file-not-found
gae-quotas
http-patch
printdialog
flex++
process-explorer
argouml
wimax
qtconcurrent
stress
box2d-iphone
denied
xui
commerceserver2007
objective-j
resharper-6.0
addchild
request-headers
httpcookie
lemmatization

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App