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

Debug excel enable conversion of data and free text columns of input / output #550

Merged
merged 7 commits into from
Oct 30, 2024

Conversation

Etschbeijer
Copy link
Collaborator

Minor fixes of smaller problems e.g. column sizes adapt correctly now, when a template is added or building block is deleted
Main problem could not be fully solved, requires fix in ARCtrl

Adapt column size when adding template, deleting building block
Adapt conversion possibilities of building blocks
@Etschbeijer Etschbeijer self-assigned this Oct 29, 2024
src/Client/OfficeInterop/OfficeInterop.fs Outdated Show resolved Hide resolved
@@ -1791,6 +1833,43 @@ let addBuildingBlockAt (excelIndex: int) (newBB: CompositeColumn) (table: Table)
|> List.iteri (fun ci header -> ExcelHelper.addColumnAndRows (float (excelIndex + ci)) table header bodyValues.[ci] |> ignore)
}

type BodyCellType =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type will be added to Shared as CompositeCellDiscriminate in my pr #549

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep it here and add a [<System.Obsolete("Replace with Shared CompositeCellDiscriminate")>]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

src/Client/OfficeInterop/OfficeInterop.fs Outdated Show resolved Hide resolved
src/Client/OfficeInterop/OfficeInterop.fs Outdated Show resolved Hide resolved

return
match cellType with
| Some CompositeCellDiscriminate.Unitized -> Some CompositeCellDiscriminate.Term
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function must be reworked.

Here is what you do as far as i understand it:

goal: Return valid celltypes for conversion based on cellType

  1. get active table
  2. try parse to arctable, then take .Value without error handling
  3. get selected main column
  4. check if valid conversion

BUT;

  • if cellType is term return unitized without any checking against the selected building block
  • Similiar for cellType = Data

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed (hopefully)

@Freymaurer Freymaurer merged commit 0388c7b into main Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants