13 Replies Latest reply: Aug 14, 2012 11:39 AM by TomCuneo-MLT RSS

    using tag_edit and tag_delete

    TomCuneo-MLT Community Member

      Im working on a webapp, kind of still learning the web app tag usage.

       

      I need to list the items of the webapp and next to it have a check box to delete - and when they click on the web app item link it opens to let them edit it.

       

      This is all being done in a secured area the site owner will login to add listings -


      I cant find any docs on how to implement the edit and delete tags though - i see them just no specifics or examples -


      Thanks in advance - hoping for a quick answer lol

       

      Tom

        • 1. Re: using tag_edit and tag_delete
          Liam Dilley MVP

          Why is the site owner going there? They can just manage web app items in the admin.

          The tag edit link is for the owner of that web app item (which you would need to set in the admIn) and in the list view it will have a hyperlink which links to the edit layout which has the form.

          Delete will be the same and do exactly what it says on the tin.


          But it seems your building a back end for the client of the site? When the admin is for them to do those things already.

          • 2. Re: using tag_edit and tag_delete
            TomCuneo-MLT Community Member

            They may have employees doing this - and they do not want them to have access to the "admin" area like I for example have. So I am building essentially an employee area where they can login - view add edit and delete the farm listings as needed.

             

            On the SITE side ive got the web app built and displays on the website great,

             

            http://romanfarm.businesscatalyst.com/sale.html

             

            I built a secured area for them to login to where I want them to be able to do this. I am using the secondary (backup list view template) to list them out in short format - from there im kind of lost on how to add a check box and delete button to check which ones to delete. As well how to change the link in the list view (backup) to open the details inside the employee secured area to let them edit listings as needed -

             

            Thanks
            Tom

            • 3. Re: using tag_edit and tag_delete
              Liam Dilley MVP

              The edit and delte will only render when logged in. You essentially just output the web app list.
              Delete wise it does not work like that, you just need to implement as those tags render.

              • 4. Re: using tag_edit and tag_delete
                TomCuneo-MLT Community Member

                I thought i was LOL :-)

                 

                On the backup list view ive got it like such:

                 

                <table>

                    <tbody>

                        <tr>

                            <td>{tag_delete}</td>

                            <td>{tag_name}</td>

                            <td>{tag_edit}</td>

                            <td>{tag_lastupdatedate}</td>

                        </tr>

                    </tbody>

                </table>

                 

                I login into the secured area and it only outputs the name and lastupdatedate the other table areas are blank.. I even added a listing from inside the secured area and it worked and added it great to the web app...

                 

                not sure if im missing the boat or misunderstanding the hows of the proper use - ideally would be awesome to have it list the items one per line with an edit and delete button next to each item - im guessing the system isnt designed to be that logical though? lol :-)

                 

                Thanks -
                Tom

                • 5. Re: using tag_edit and tag_delete
                  Liam Dilley MVP

                  You need to set the owner on the web app item in the admin to the person your logging in with.

                  Only one owner can be assigned to the web app item.

                  Under more options in the web app item you assign by going to "Submitted By"

                  If you have more then one staff they would have to share the same login to be able to edit all items, but then shared login -

                  • 6. Re: using tag_edit and tag_delete
                    TomCuneo-MLT Community Member

                    This worked for me for the editing part -

                     

                    <a href="/CustomContentRetrieve.aspx?ID={tag_itemid}&amp;A=Edit">Edit</a> - I added this to the list view at the end of the tag calls i want and it works great. Opens up the item and allows editing :-)

                     

                    Now I can figure out the same for delete as well...

                     

                    And yes I AM and DID set the owner on the web app items but i still do not get the edit or delete rendered for me in the secured area like I thought it would... Yes I assigned that as you mention - I think or guess i was/am putting the tag in the wrong spot, its in the backup view but doesnt show up at all - 


                    Tom

                    • 7. Re: using tag_edit and tag_delete
                      TomCuneo-MLT Community Member

                      Well the thing i posted kind of works.. seems kind of flaky after testing a few rounds -

                       

                      I just dont get what im doing wrong for the tags to not be working...

                      • 8. Re: using tag_edit and tag_delete
                        Liam Dilley MVP

                        I have more then one implementation with those, in a securezone in a list layout and works perfectly.They render when owner logs in and its all good so I am not sure what your issue is and why your doing these extra bits Tom

                        • 9. Re: using tag_edit and tag_delete
                          TomCuneo-MLT Community Member

                          Well i set up the edit and delete per BC guru's website on altnerative ways but the delete function does not delete it from the db - made sure the ID's and who I was logging in as was all matched up - grrrr - lol :-) tomorrows another day - my brain hurts hehe


                          Tom

                          • 10. Re: using tag_edit and tag_delete
                            TomCuneo-MLT Community Member

                            Im going to check some things have someone else login make sure it isnt my pc causing the issue - also will check another browser - i use chrome but havent tried it yet in others - Im not sure what is up either, I know the secure zone is setup right and the webapp params, etc - im pretty confident on those basic aspects...  when i login the name is echoing correcting


                            Thanks man for your help -

                             

                            Will look at it when im fresh in morning -
                            Tom

                            • 11. Re: using tag_edit and tag_delete
                              TomCuneo-MLT Community Member

                              Here is a "is this doable" question for someone - :-)

                               

                               

                              I am setting this up for three sections - For Sale, For Rent and SOLD

                               

                              Should I put each into its own web app - and what would be the recommended or easiest way to let the client move from ForSale to SOLD -

                               

                              I was thinking the easiest way would be to have just ONE Webapp and a drop down to let them select where it goes when they are adding one - then maybe use categories to segment them?   Sound reasonable

                               

                               

                               

                              Thanks in advance,
                              Tom

                              • 12. Re: using tag_edit and tag_delete
                                TomCuneo-MLT Community Member

                                I figured this out - was way overthinking it LOL

                                • 13. Re: using tag_edit and tag_delete
                                  TomCuneo-MLT Community Member

                                  Got this all working 100% - Thanks again for your input Liam - :-) As always!


                                  Tom