Button "file, new"

I assume when you're talking about adding a "file,new" button you're in data entry A/P invoice entry, for example. So, what I've done is added hot keys to those forms. For example, Ctrl+I for a new invoice, Ctrl+L for a new line and so forth. Hot keys are activated under the Tools, then Options drop down lists and are available in most data entry input screens.

--- In vantage@yahoogroups.com, "cooner_55421" <cooner_55421@...> wrote:
>
> > No idea what you mean.
> Just that sometimes it feels like lot's of menu selections for an operation.
> My best example would probably be printing a label when I finish an operation in MES.
>
>
> --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> >
> > No idea what you mean.
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *T: 904.469.1524 mobile
> > E: jose@
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> >
> > *Quis custodiet ipsos custodes?*
> >
> >
> >
> > On Tue, Apr 12, 2011 at 2:57 PM, cooner_55421 <cooner_55421@>wrote:
> >
> > >
> > >
> > > Thanks for the example.
> > >
> > > BTW...
> > > Now I'm wondering why I couldn't find very many examples for buttons.
> > > It seemed like a good way to reduce steps.
> > > Am I out in left field?
> > >
> > > Vantage sometimes feels a little too "clicky" to me.
> > >
> > >
> > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > >
> > > > Basically you need to hookup to the current Adapter and call
> > > > the get-anew method on it.
> > > > something like
> > > >
> > > > UD10Adapter oTrans_adapter;
> > > > oTrans_adapter = (UD10Adapter)csm.TransAdaptersHT["oTrans_adapter"];
> > > >
> > > > if (oTrans_adapter.GetaNewUD10())
> > > > {
> > > > // Get unique row count id for Key5
> > > > int rowCnt = 0;
> > > > int lineNum;
> > > > rowCnt = oTrans_adapter.UD10Data.UD10.Rows.Count;
> > > > lineNum = rowCnt;
> > > > bool goodIdx = false;
> > > > // ** determine Key5 value
> > > > while (!goodIdx)
> > > > {
> > > > // Check to see if index exists
> > > > System.Data.DataRow[] drs = oTrans_adapter.UD10Data.UD10.Select("Key5 =
> > > '"
> > > > + lineNum.ToString() + "'");
> > > > if (drs.Length > 0)
> > > > {
> > > > lineNum++;
> > > > }
> > > > else
> > > > {
> > > > goodIdx = true;
> > > > }
> > > > }
> > > > // Set initial UD Key values
> > > > int numRow = (rowCnt - 1);
> > > > oTrans_adapter.UD10Data.UD10.Rows[numRow].BeginEdit();
> > > > oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key1"] = "your key1";
> > > > oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key2"] = "your key2";
> > > > oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key3"] = String.Empty;
> > > > oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key4"] = String.Empty;
> > > > oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key5"] = lineNum.ToString();
> > > > oTrans_adapter.UD10Data.UD10.Rows[numRow].EndEdit();
> > > > // Notify with updated data
> > > > _edvUD10.Notify(new EpiNotifyArgs(oTrans, numRow, _edvUD10.Column));
> > > > }
> > > >
> > > >
> > > > *Jose C Gomez*
> > > > *Software Engineer*
> > > > *
> > > > *T: 904.469.1524 mobile
> > > > E: jose@
> > >
> > > > http://www.josecgomez.com
> > > > <http://www.linkedin.com/in/josecgomez> <
> > > http://www.facebook.com/josegomez>
> > > > <http://www.google.com/profiles/jose.gomez> <
> > > http://www.twitter.com/joc85>
> > > > <http://www.josecgomez.com/professional-resume/>
> > > > <http://www.josecgomez.com/feed/>
> > > >
> > > > *Quis custodiet ipsos custodes?*
> > > >
> > > >
> > > >
> > > > On Tue, Apr 12, 2011 at 2:30 PM, cooner_55421 <cooner_55421@>wrote:
> > >
> > > >
> > > > >
> > > > >
> > > > > BTW..
> > > > > I ran a trace as I added a record:
> > > > > <methodName>GetaNewUD10</methodName>
> > > > > <methodName>GetByID</methodName>
> > > > > <methodName>Update</methodName>
> > > > > <methodName>GetRowsKeepIdleTime</methodName>
> > > > >
> > > > > --- In vantage@yahoogroups.com, "cooner_55421" <cooner_55421@> wrote:
> > > > > >
> > > > > > Hi Jose,
> > > > > >
> > > > > > I'd like to do this on UD10Form.
> > > > > > When I use "File, New" from the menu.
> > > > > > I was lucky and found code for auto-assigning the next number
> > > available
> > > > > (a tech tip example for UD03). It works nice.
> > > > > >
> > > > > > Now, a "File, New" button would really be better than having to use
> > > the
> > > > > menu.
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > >
> > > > > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > > > > >
> > > > > > > Can you be more specific....
> > > > > > > A File new What to which form?
> > > > > > >
> > > > > > > *Jose C Gomez*
> > > > > > > *Software Engineer*
> > > > > > > *
> > > > > > > *T: 904.469.1524 mobile
> > > > > > > E: jose@
> > > > > > > http://www.josecgomez.com
> > > > > > > <http://www.linkedin.com/in/josecgomez> <
> > > > > http://www.facebook.com/josegomez>
> > > > > > > <http://www.google.com/profiles/jose.gomez> <
> > > > > http://www.twitter.com/joc85>
> > > > > > > <http://www.josecgomez.com/professional-resume/>
> > > > > > > <http://www.josecgomez.com/feed/>
> > > > > > >
> > > > > > > *Quis custodiet ipsos custodes?*
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Tue, Apr 12, 2011 at 1:55 PM, cooner_55421 <cooner_55421@
> > > >wrote:
> > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > Just wondering if anybody has an example for adding a "file, new"
> > > > > button to
> > > > > > > > a form?
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > [Non-text portions of this message have been removed]
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
Can you be more specific....
A File new What to which form?

*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*



On Tue, Apr 12, 2011 at 1:55 PM, cooner_55421 <cooner_55421@...>wrote:

>
>
> Hi,
>
> Just wondering if anybody has an example for adding a "file, new" button to
> a form?
>
> Thanks
>
>
>


[Non-text portions of this message have been removed]
Basically you need to hookup to the current Adapter and call
the get-anew method on it.
something like

UD10Adapter oTrans_adapter;
oTrans_adapter = (UD10Adapter)csm.TransAdaptersHT["oTrans_adapter"];

if (oTrans_adapter.GetaNewUD10())
{
// Get unique row count id for Key5
int rowCnt = 0;
int lineNum;
rowCnt = oTrans_adapter.UD10Data.UD10.Rows.Count;
lineNum = rowCnt;
bool goodIdx = false;
// ** determine Key5 value
while (!goodIdx)
{
// Check to see if index exists
System.Data.DataRow[] drs = oTrans_adapter.UD10Data.UD10.Select("Key5 = '"
+ lineNum.ToString() + "'");
if (drs.Length > 0)
{
lineNum++;
}
else
{
goodIdx = true;
}
}
// Set initial UD Key values
int numRow = (rowCnt - 1);
oTrans_adapter.UD10Data.UD10.Rows[numRow].BeginEdit();
oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key1"] = "your key1";
oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key2"] = "your key2";
oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key3"] = String.Empty;
oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key4"] = String.Empty;
oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key5"] = lineNum.ToString();
oTrans_adapter.UD10Data.UD10.Rows[numRow].EndEdit();
// Notify with updated data
_edvUD10.Notify(new EpiNotifyArgs(oTrans, numRow, _edvUD10.Column));
}


*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*



On Tue, Apr 12, 2011 at 2:30 PM, cooner_55421 <cooner_55421@...>wrote:

>
>
> BTW..
> I ran a trace as I added a record:
> <methodName>GetaNewUD10</methodName>
> <methodName>GetByID</methodName>
> <methodName>Update</methodName>
> <methodName>GetRowsKeepIdleTime</methodName>
>
> --- In vantage@yahoogroups.com, "cooner_55421" <cooner_55421@...> wrote:
> >
> > Hi Jose,
> >
> > I'd like to do this on UD10Form.
> > When I use "File, New" from the menu.
> > I was lucky and found code for auto-assigning the next number available
> (a tech tip example for UD03). It works nice.
> >
> > Now, a "File, New" button would really be better than having to use the
> menu.
> >
> > Thanks
> >
> >
> > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > >
> > > Can you be more specific....
> > > A File new What to which form?
> > >
> > > *Jose C Gomez*
> > > *Software Engineer*
> > > *
> > > *T: 904.469.1524 mobile
> > > E: jose@
> > > http://www.josecgomez.com
> > > <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> > > <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> > > <http://www.josecgomez.com/professional-resume/>
> > > <http://www.josecgomez.com/feed/>
> > >
> > > *Quis custodiet ipsos custodes?*
> > >
> > >
> > >
> > > On Tue, Apr 12, 2011 at 1:55 PM, cooner_55421 <cooner_55421@>wrote:
> > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > Just wondering if anybody has an example for adding a "file, new"
> button to
> > > > a form?
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>
>
>


[Non-text portions of this message have been removed]
No idea what you mean.

*Jose C Gomez*
*Software Engineer*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>

*Quis custodiet ipsos custodes?*



On Tue, Apr 12, 2011 at 2:57 PM, cooner_55421 <cooner_55421@...>wrote:

>
>
> Thanks for the example.
>
> BTW...
> Now I'm wondering why I couldn't find very many examples for buttons.
> It seemed like a good way to reduce steps.
> Am I out in left field?
>
> Vantage sometimes feels a little too "clicky" to me.
>
>
> --- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
> >
> > Basically you need to hookup to the current Adapter and call
> > the get-anew method on it.
> > something like
> >
> > UD10Adapter oTrans_adapter;
> > oTrans_adapter = (UD10Adapter)csm.TransAdaptersHT["oTrans_adapter"];
> >
> > if (oTrans_adapter.GetaNewUD10())
> > {
> > // Get unique row count id for Key5
> > int rowCnt = 0;
> > int lineNum;
> > rowCnt = oTrans_adapter.UD10Data.UD10.Rows.Count;
> > lineNum = rowCnt;
> > bool goodIdx = false;
> > // ** determine Key5 value
> > while (!goodIdx)
> > {
> > // Check to see if index exists
> > System.Data.DataRow[] drs = oTrans_adapter.UD10Data.UD10.Select("Key5 =
> '"
> > + lineNum.ToString() + "'");
> > if (drs.Length > 0)
> > {
> > lineNum++;
> > }
> > else
> > {
> > goodIdx = true;
> > }
> > }
> > // Set initial UD Key values
> > int numRow = (rowCnt - 1);
> > oTrans_adapter.UD10Data.UD10.Rows[numRow].BeginEdit();
> > oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key1"] = "your key1";
> > oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key2"] = "your key2";
> > oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key3"] = String.Empty;
> > oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key4"] = String.Empty;
> > oTrans_adapter.UD10Data.UD10.Rows[numRow]["Key5"] = lineNum.ToString();
> > oTrans_adapter.UD10Data.UD10.Rows[numRow].EndEdit();
> > // Notify with updated data
> > _edvUD10.Notify(new EpiNotifyArgs(oTrans, numRow, _edvUD10.Column));
> > }
> >
> >
> > *Jose C Gomez*
> > *Software Engineer*
> > *
> > *T: 904.469.1524 mobile
> > E: jose@...
>
> > http://www.josecgomez.com
> > <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> > <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> > <http://www.josecgomez.com/professional-resume/>
> > <http://www.josecgomez.com/feed/>
> >
> > *Quis custodiet ipsos custodes?*
> >
> >
> >
> > On Tue, Apr 12, 2011 at 2:30 PM, cooner_55421 <cooner_55421@...>wrote:
>
> >
> > >
> > >
> > > BTW..
> > > I ran a trace as I added a record:
> > > <methodName>GetaNewUD10</methodName>
> > > <methodName>GetByID</methodName>
> > > <methodName>Update</methodName>
> > > <methodName>GetRowsKeepIdleTime</methodName>
> > >
> > > --- In vantage@yahoogroups.com, "cooner_55421" <cooner_55421@> wrote:
> > > >
> > > > Hi Jose,
> > > >
> > > > I'd like to do this on UD10Form.
> > > > When I use "File, New" from the menu.
> > > > I was lucky and found code for auto-assigning the next number
> available
> > > (a tech tip example for UD03). It works nice.
> > > >
> > > > Now, a "File, New" button would really be better than having to use
> the
> > > menu.
> > > >
> > > > Thanks
> > > >
> > > >
> > > > --- In vantage@yahoogroups.com, Jose Gomez <jose@> wrote:
> > > > >
> > > > > Can you be more specific....
> > > > > A File new What to which form?
> > > > >
> > > > > *Jose C Gomez*
> > > > > *Software Engineer*
> > > > > *
> > > > > *T: 904.469.1524 mobile
> > > > > E: jose@
> > > > > http://www.josecgomez.com
> > > > > <http://www.linkedin.com/in/josecgomez> <
> > > http://www.facebook.com/josegomez>
> > > > > <http://www.google.com/profiles/jose.gomez> <
> > > http://www.twitter.com/joc85>
> > > > > <http://www.josecgomez.com/professional-resume/>
> > > > > <http://www.josecgomez.com/feed/>
> > > > >
> > > > > *Quis custodiet ipsos custodes?*
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Apr 12, 2011 at 1:55 PM, cooner_55421 <cooner_55421@
> >wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > Just wondering if anybody has an example for adding a "file, new"
> > > button to
> > > > > > a form?
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > [Non-text portions of this message have been removed]
> > > > >
> > > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>


[Non-text portions of this message have been removed]