Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Edit of File Type Description #3

Closed
Industry4 opened this issue May 17, 2023 · 2 comments
Closed

Allow Edit of File Type Description #3

Industry4 opened this issue May 17, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Industry4
Copy link
Owner

Industry4 commented May 17, 2023

Displaying the Current Value

  • Within <div class="box non-collapsible"></div> add a new <input> using the following example:
<h4>File Properties</h4>
<div class="row-fluid">
    <div class="well">
        <div class="row-fluid">
            <input type="hidden" name="Guid" value="@Model.Extension.Model.Guid">
            <input type="text" name="" class="span3" placeholder="File Type Description" value="">
        </div>
    </div>
</div>
  • Change the value of name="" to something appropriate.
  • Change the Get() of FileController.cs to the Data Model contains the current value of the FileTypeDescription known in code as Type.
  • Change the value of value="" so the value is the current value, use what you learnt in Add a About Page #2

Saving The New Value

  • In FileController.cs create a Post() function with a single parameter of a Data Model (class) containing the string properties 1. Guid and 2. the name you used for name=""
  • the Post() function should search for the correct FileImporterComponent using the Guid (use the same code as the Get()) then call the UpdateProperties(FileImporterProperties theNewProperties) function to perform the update.
  • Finally Return return new Response using the same code found in the Get()
@Industry4 Industry4 added the enhancement New feature or request label May 17, 2023
@Industry4 Industry4 added this to the 1.0.2 milestone May 17, 2023
JBJ05 added a commit that referenced this issue May 24, 2023
@JBJ05
Copy link
Collaborator

JBJ05 commented May 24, 2023

Change File Type Description

@JBJ05 JBJ05 closed this as completed May 24, 2023
Industry4 pushed a commit that referenced this issue May 27, 2023
@Industry4
Copy link
Owner Author

User Interface

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants