“…thank you and your team for all the outstanding work you did under trying circumstances at times. We hope to continue our mutually beneficial working relationship. Take care, and give my best to your team.”
Gino Manocchio, Agility Business Solutions, Partner, 2011

Famous Ctrl+Z

Most of Ax people already are used to press Ctrl+Z in any field on a form and that brings full info about the field begind the control: table, field, type etc.

However, in contrary what some people may think, this is not standard Ax.

Below is the code that implement this nice feature.

Here is a method task() in system class SysSetupFormRun.

public int task(int _p1)
    FormDataSource formDataSource;
    int ret;
// Modification BY ERPServis (AxDevGuru) - Begin
    //Shows table and field or datamethods name when Ctrl + Z pressed on a field on a form
    DictField   df;
    FormControl fc;
    formStringControl fsc;
    DictEnum dictEnum = new DictEnum(enumnum(Types));
    DictEnum dictEnums;

    if (_p1 == 769) //Ctrl + Z
        fc = this.selectedControl();
        formDataSource =  this.objectSet();

        if(fc && formDataSource)
            fsc    = fc;
            if(fsc.dataField() && formDataSource.table())
                info(strfmt('Table    -> %2.%1',fieldId2Name(formDataSource.table(),
                                    fsc.dataField() - 65536),
                                    df = new DictField(formDataSource.table(), fsc.dataField() - 65536);
                    info(strfmt('Name    -> %1',df.name()));
                    info(strfmt('Type     -> %1',dictEnum.index2Symbol(df.baseType())));

                    if(df.baseType() == typeOf(Types::Enum))
                        dictEnums = new dictEnum(df.enumId());
                        info(strfmt('Enum     -> %1',dictEnums.name()));

                    info(strfmt('Ext type -> %1',extendedTypeId2name(df.typeId())));
                    info(strfmt('Size       -> %1',int2str(df.stringLen())));

                info(strfmt('METHOD %1.%2',tableId2Name(formDataSource.table()),
// Modification BY ERPservis (AxDevGuru) - End

// rest of the method

Comments (9)

  • MaxGabroTen 2017-02-21 02:34

    Good employment! Thanx you concerning you job http://www.fincircoli.it/node/124 http://dev.slf.org.au/node/4797 http://sibbs.tsu.ru/node/185

  • Enrilla 2020-06-22 05:32

    Ordine Kamagra 100mg https://cheapcialisll.com/ - cialis without prescription Levitra Packungsgro?Enverordnung <a href=https://cheapcialisll.com/#>Cheap Cialis</a> Dosis Kamagra Gel

  • OamVP 2021-04-27 20:17

    Drug information sheet. Brand names. <a href="https://topregabalin.top">can i purchase generic lyrica without prescription</a> in the USA Everything trends of medicines. Get information here.

  • UjgTW 2021-04-29 15:19

    Drug information leaflet. Drug Class. <a href="https://pregabalinfor.top">cost cheap pregabalin no prescription</a> in US Actual what you want to know about meds. Get now.

  • AtocanO 2021-04-30 12:39

    <a href=http://vslevitrav.com/>how to get a free trial of levitra[/url]

  • AtocanO 2021-06-02 01:46

    <a href=http://sscialisvv.com/>buy cialis pills[/url]

  • AtocanO 2021-06-17 14:04

    <a href=https://vsnolvadexv.com>where can i buy nolvadex pct[/url]

  • AtocanO 2021-07-03 01:40

    <a href=http://vsviagrav.com/>viagra information</a>

  • AtocanO 2021-07-21 06:54

    <a href=https://vskamagrav.com/>ajanta kamagra oral jelly</a>

Write a comment