Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Default navigation bar disable?

Hybrid View

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Location
    Germany, near Jena and Weimar
    Posts
    264
    Thank you all!
    Georg

    I think: Because the Actionbar does not consist of single elements (f.e. buttons) with single roles and rights to define, the Actionsbar is not not suitable for my problem, think of a guestbook!

    So could a guestbook consist of two separate pages:
    1. a page for the admin (having all rights after login)
    2. a page for the "guest" user (without login): one section to fill in the data and a "send" button and below a WebView section where all entries are displayed (simple or more sophisticated.

    (Is there a tool to generate a (graphical?) code to type in before "send" is pressed?)

  2. #2
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,842
    Hi Georg,

    Once you have roles in the Web Client, when a user who does not have the role clicks the delete button on the actionbar, a message will be displayed to say that they cannot delete.

    If you don't want them to see buttons that they cannot use, then yes with roles you will be able to set the Read role on individual Pages so that all users will be able to see certain pages and only users with specific roles will be able to see others.

    Lianja does not have a built-in captcha control, but if you search online you should be able to find one - maybe css or JavaScript - that you can include. Perhaps other developers have recommendations of ones they have used?

    Regards,

    Yvonne

  3. #3
    Senior Member
    Join Date
    Feb 2012
    Location
    Germany, near Jena and Weimar
    Posts
    264
    Thank you, Yvonne!

    A last question on "Actionbar":
    I'm sure in the meantime :-) I don't need the Actionbar but a Custom Menu like in WebappExample 2.

    Can I enable and disable the buttons (like Contact, Filter, Reset etc.) programmatically?

  4. #4
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135
    Enabling / disabling custom section menu items is not possible in this concept.
    It is intended to use a string written in Section Attributes: Menu | Custom menu , like...:

    Code:
    Contacts,Reset,Filter(All|Sales|Owner|Marketing|Accounting),Navigate(First|Previous|Next|Last),Reports(High Credit Customers|Over Credit Limit|Customer List),Search,Map
    ...and to deal with actions by code in

    Section Attributes: Custom delegates | Custom section menu.

    This is quite static. You can only programatically write new string in Custom menu and refresh section.
    And need to be sure that you have mentioned all possible cases in your delegate code. But, as Yvonne said, works only in desktop app.

    Yes, there is no much developer control. I advice you to send ER (Enhancement Request) for prefixes which will enable/disable items.

    Barry mentioned once:
    The App Center and the Page Center are .rsp files that generate dynamic HTML5 / JavaScript.
    you can customize these with your own background image and branding, and also add the menu bar that you mention by reading the appcenter.rsp source code.
    Well, this is not for section, but app level.

    In the meanwhile, you can look at some different approaches (Herb is our pioneer).
    See his videos with menus: https://www.youtube.com/watch?v=DlEHGGe00VA and https://www.youtube.com/watch?v=PGmVEP_YwrI

    Here are some interesting posts:
    http://www.lianja.com/community/show...and-ShowDialog
    http://www.lianja.com/community/show...enus-in-Lianja
    http://www.lianja.com/community/show...ange-menu-text
    http://www.lianja.com/community/show...130-Popup-menu

    Josip
    Last edited by josipradnik; 2016-03-11 at 03:14.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us