Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

Multipart id numbering

edited August 27 in Installation

Hi,

I am trying to create automatic lists. I am editing the /var/www/ca/providence/app/conf/local/multipart_id_numbering.conf file with the following content:

ca_list_items = {
default = {
separator =,

                elements = {
                        list_item_number = {
                                type = SERIAL,
                                width = 30,
                                description = _(Identifier)
                                #editable = 1,

                                table = ca_list_items,
                                field = idno,
                                sort_field = idno_sort

                                #zeropad_to_length: if set to a non-zero value, the sequence number is left-padded with zeros until its length is equal to the value.
                                zeropad_to_length = 0

                                #sequence_by_type: if set to a non-zero value sequences are calculated by type.
                                sequence_by_type = 1

                                #minimum_value: a non-zero number to use as the initial value for the sequence.
                                #Ex. if set to 20000 then the first record created with be numbered 20000, the second 20001 and so on.
                                minimum_value = 0

                        }
                }
        }
},

When I create a new list item, I see the "ERR" alert.
My profile has gender identifiers XX_yyy_aaa. That is, the identifiers that were installed have this structure, the new I want to be automatic.
How do I put automatic list item?

Comments

  • You're missing the comma after "description = _(Identifier)"

  • Thank you. That was it.

    My multipart_id_numbering.conf:

    ca_list_items = {
    default = {
    separator =,

                        elements = {
                                list_item_number = {
                                        type = SERIAL,
                                        width = 30,
                                        description = _(Identifier),
                                        #editable = 1,
                                        table = ca_list_items,
                                        field = idno,
                                        sort_field = idno_sort,
    
                                        #zeropad_to_length: if set to a non-zero value, the sequence number is left-padded with zeros until its length is equal to the value.
                                        zeropad_to_length = 0,
    
                                       #sequence_by_type: if set to a non-zero value sequences are calculated by type.
                                        sequence_by_type = 1,
    
                                       #minimum_value: a non-zero number to use as the initial value for the sequence.
                                        #Ex. if set to 20000 then the first record created with be numbered 20000, the second 20001 and so on.
                                        minimum_value = 0
    
                                }
                        }
                }
        },
    

    Now I see:

    Thank you :)

Sign In or Register to comment.