* [EBDB] How to create a role (record)?
@ 2021-07-01 8:27 Pankaj Jangid
2021-07-01 16:01 ` Eric Abrahamsen
0 siblings, 1 reply; 5+ messages in thread
From: Pankaj Jangid @ 2021-07-01 8:27 UTC (permalink / raw)
To: Eric Abrahamsen; +Cc: Emacs Help
How to create a new Role type of record? I could not find a command in
the help. And the one mentioned in ‘section 4.4.1 Role’ fields is not
working. This section specifies ‘F’. But this is bound to
‘ebdb-format-these-records’.
--
Regards ~Pankaj
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [EBDB] How to create a role (record)?
2021-07-01 8:27 [EBDB] How to create a role (record)? Pankaj Jangid
@ 2021-07-01 16:01 ` Eric Abrahamsen
2021-07-02 11:31 ` Pankaj Jangid
0 siblings, 1 reply; 5+ messages in thread
From: Eric Abrahamsen @ 2021-07-01 16:01 UTC (permalink / raw)
To: Emacs Help
Pankaj Jangid <pankaj@optimizory.com> writes:
> How to create a new Role type of record? I could not find a command in
> the help. And the one mentioned in ‘section 4.4.1 Role’ fields is not
> working. This section specifies ‘F’. But this is bound to
> ‘ebdb-format-these-records’.
Huh, something went wrong in the manual there. "Using the 'F'"? The
proper key is "R", to both create a new record, and give the record
under point a role in that new record.
A role is a field type, not a record type, so you can create a role as
normal by hitting "i" and then selecting "role" as the type. That
requires both records (person and organization) to already exist.
That reminds me, I've been meaning to add a hook so that, after a new
record is created, EBDB checks if its mail addresses matches any
organization domain, and offers to create a role field. I'll see if I
can add that today, and release a new version.
Hope that solves the problem for now, though! Thanks for the report.
Eric
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [EBDB] How to create a role (record)?
2021-07-01 16:01 ` Eric Abrahamsen
@ 2021-07-02 11:31 ` Pankaj Jangid
2021-07-02 15:40 ` Eric Abrahamsen
0 siblings, 1 reply; 5+ messages in thread
From: Pankaj Jangid @ 2021-07-02 11:31 UTC (permalink / raw)
To: help-gnu-emacs
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Pankaj Jangid <pankaj@optimizory.com> writes:
>
>> How to create a new Role type of record? I could not find a command in
>> the help. And the one mentioned in ‘section 4.4.1 Role’ fields is not
>> working. This section specifies ‘F’. But this is bound to
>> ‘ebdb-format-these-records’.
>
> Huh, something went wrong in the manual there. "Using the 'F'"? The
> proper key is "R", to both create a new record, and give the record
> under point a role in that new record.
Ok. I should have found that out.
> A role is a field type, not a record type, so you can create a role as
> normal by hitting "i" and then selecting "role" as the type. That
> requires both records (person and organization) to already exist.
>
> That reminds me, I've been meaning to add a hook so that, after a new
> record is created, EBDB checks if its mail addresses matches any
> organization domain, and offers to create a role field. I'll see if I
> can add that today, and release a new version.
>
I am happy with the a similar functionality that already
exists. i.e. when I assign a role, EBDB already checks if the main
email-ID matches with the organization’s domain and pulls the email-ID
to associate it with the user-role relationship. It works perfectly. But
I was stuck in a scenario where I wanted to assign a role which is not
already existing. i.e. I want to create a new Organization; either
on-the-fly (hit ‘i’ while on a record, select ‘role’, “assign or create
role”) or create a top level organization type record.
And I have completely forgot how I created the roles that are already in
my database. In this thread, I wanted to know only this. How to create
new organization records?
--
Regards ~Pankaj
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [EBDB] How to create a role (record)?
2021-07-02 11:31 ` Pankaj Jangid
@ 2021-07-02 15:40 ` Eric Abrahamsen
2021-07-03 2:56 ` Pankaj Jangid
0 siblings, 1 reply; 5+ messages in thread
From: Eric Abrahamsen @ 2021-07-02 15:40 UTC (permalink / raw)
To: Pankaj Jangid; +Cc: help-gnu-emacs
Pankaj Jangid <pankaj@codeisgreat.org> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Pankaj Jangid <pankaj@optimizory.com> writes:
>>
>>> How to create a new Role type of record? I could not find a command in
>>> the help. And the one mentioned in ‘section 4.4.1 Role’ fields is not
>>> working. This section specifies ‘F’. But this is bound to
>>> ‘ebdb-format-these-records’.
>>
>> Huh, something went wrong in the manual there. "Using the 'F'"? The
>> proper key is "R", to both create a new record, and give the record
>> under point a role in that new record.
>
> Ok. I should have found that out.
>
>> A role is a field type, not a record type, so you can create a role as
>> normal by hitting "i" and then selecting "role" as the type. That
>> requires both records (person and organization) to already exist.
>>
>> That reminds me, I've been meaning to add a hook so that, after a new
>> record is created, EBDB checks if its mail addresses matches any
>> organization domain, and offers to create a role field. I'll see if I
>> can add that today, and release a new version.
>>
>
> I am happy with the a similar functionality that already
> exists. i.e. when I assign a role, EBDB already checks if the main
> email-ID matches with the organization’s domain and pulls the email-ID
> to associate it with the user-role relationship. It works perfectly. But
> I was stuck in a scenario where I wanted to assign a role which is not
> already existing. i.e. I want to create a new Organization; either
> on-the-fly (hit ‘i’ while on a record, select ‘role’, “assign or create
> role”) or create a top level organization type record.
Yep, that's exactly what "R" is for. And if you use it on an
organization record, it will offer to create a person, instead.
> And I have completely forgot how I created the roles that are already in
> my database. In this thread, I wanted to know only this. How to create
> new organization records?
If you create new records with "C" rather than "c", you'll get more
options, including which record type to create.
Eric
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [EBDB] How to create a role (record)?
2021-07-02 15:40 ` Eric Abrahamsen
@ 2021-07-03 2:56 ` Pankaj Jangid
0 siblings, 0 replies; 5+ messages in thread
From: Pankaj Jangid @ 2021-07-03 2:56 UTC (permalink / raw)
To: Eric Abrahamsen; +Cc: help-gnu-emacs
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>> I am happy with the a similar functionality that already
>> exists. i.e. when I assign a role, EBDB already checks if the main
>> email-ID matches with the organization’s domain and pulls the email-ID
>> to associate it with the user-role relationship. It works perfectly. But
>> I was stuck in a scenario where I wanted to assign a role which is not
>> already existing. i.e. I want to create a new Organization; either
>> on-the-fly (hit ‘i’ while on a record, select ‘role’, “assign or create
>> role”) or create a top level organization type record.
>
> Yep, that's exactly what "R" is for. And if you use it on an
> organization record, it will offer to create a person, instead.
>
>> And I have completely forgot how I created the roles that are already in
>> my database. In this thread, I wanted to know only this. How to create
>> new organization records?
>
> If you create new records with "C" rather than "c", you'll get more
> options, including which record type to create.
Thanks Eric.
Both the functionalities are working perfectly. That solves my query.
--
Regards ~Pankaj
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-07-03 2:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-01 8:27 [EBDB] How to create a role (record)? Pankaj Jangid
2021-07-01 16:01 ` Eric Abrahamsen
2021-07-02 11:31 ` Pankaj Jangid
2021-07-02 15:40 ` Eric Abrahamsen
2021-07-03 2:56 ` Pankaj Jangid
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.