Skip to content

Button clicks, Date not setting when creating new Activity #18

@kagalenitin

Description

@kagalenitin

I created a new Activity and added textbox, button, and dateinline.

My code:
final RowDescriptor textDisabled = RowDescriptor.newInstance("txtLocationDisabled",RowDescriptor.FormRowDescriptorTypeText, "", new Value("Click on Location to Set Pickup Location"));
textDisabled.setDisabled(true);
sectionDescriptor.addRow(textDisabled);

    btnPickupLocation.setOnFormRowClickListener(new OnFormRowClickListener() {
        @Override
        public void onFormRowClick(FormItemDescriptor itemDescriptor) {
            if (textDisabled.getValue().equals("Click on Location Button")) {
                textDisabled.setValue(new Value<String>("Set Pickup Location"));
            }
        }
    });
    sectionDescriptor.addRow(btnPickupLocation);

  • Date Inline doesn't open the Date Dialog.

- When I set new date in Date Dialog, it doesn't set the value .

Next,
I then used the SampleFormFragment.java from the controller package and modified it. I am not able to upload the modified text file. I run into same issue. Can someone take a look at it please and let me know what am I doing wrong. Appreciate your help in advance. Also is there any active development happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions