Open object in design-mode

NostaNosta Member Posts: 31
Hi all,

does anyone know the way to open any NAV object (form/report/dataport) in design mode (Ctrl+F2)?
SendKeys method and so on are not suitable in my case. Obviously, some add-on could be used for this purposes, just want to ensure that there are no standard methods to do this. Would be happy if I'm wrong :)
Now I'm playing around with winapi32, but it seems to be exhausting a bit.

br\Gennadii

Answers

  • SogSog Member Posts: 1,023
    Since you're asking for "how to open any object in design mode"

    You can go to the menu tools, and select object designer (ctrl+F12)
    Then you select the object of your desire and press the design button (alt+d)
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • NostaNosta Member Posts: 31
    Perfect! :)
    your answer is absolutely correct, but my question is not )

    Sorry, I forgot to mention that I need to do so from C/AL.
  • SogSog Member Posts: 1,023
    edited 2009-06-10
    There is no standard way of doing so.
    If you succeed in this task I presume that your the first one to achieve this.

    IF your goal is to change the code on runtime and use the new object THEN
    I would suggest to stop searching now;
    Try to analyse your problem from a different kind of view;
    END ELSE
    Go ahead try to open them, but I fear it is not impossible;


    (alterd post to make more sense)
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • NostaNosta Member Posts: 31
    I don't want to change the code, just open forms and(or) reports in design mode, make some manipulations and close them without any changes.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Nosta wrote:
    make some manipulations and close them without any changes.
    :?:
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • NostaNosta Member Posts: 31
    by "manipulations" I meant a need to show some dialogboxes, make a screenshot, for example, etc., but do not make any changes in "designed" objects.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    I see: you want to create some technical documentation of the NAV objects, automatically created by the system :-k
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • NostaNosta Member Posts: 31
    Yes, you're right ) I develop a tool to generate technical documentation on selected NAV objects. and I need to run particular object in design mode. as for now, I'm using SendKeys from 'Windows Script Host Object Model' library, but it works with active window only and doesn't allow user to switch input focus to any other application, thus. Moreover, it will not work on Vista and Server 2008. that's why I'm looking for any other workaround.
    now, when I laid my cards on the table, do you have any ideas how it could be done by C/AL? :)
Sign In or Register to comment.